From: Subject: NoodleBib - The MLA and APA Bibliography Composer Date: Tue, 12 Dec 2006 11:40:51 -0500 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0000_01C71DE2.604E3120" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C71DE2.604E3120 Content-Type: text/html; charset="x-user-defined" Content-Transfer-Encoding: quoted-printable Content-Location: http://www.noodletools.com/noodlebib/mybib.php?printBib=1 NoodleBib - The MLA and APA Bibliography = Composer
Works Cited

"American literature." World =
Encyclopedia. Philip's 2005 ed. Oxford Reference Online. =
Oxford UP. 12
     Dec. 2006 =
<http://www.oxfordreference.com/ENTRY.html?subview=3DMain&entry=3D=
t142.e376>. 
"Benjamin Rush." Encyclopedia of World Biography. =
Ed. Paula K Byers, Ed. 2nd ed. Vol. 13.
     Detroit,MI: Gale, 1998. =
364-365. Gale Virtual Reference Library. Thomson Gale. =
Archbishop
     Carroll HS, Radnor PA. 12 =
Dec. 2006 <http://infotrac.galegroup.com/itweb/?db=3DGVRL>. =
"Education." The Reader's Guide to American =
History. 1991. Xreferplus. Xreferplus. =
Archbishop
     Carroll HS, Radnor PA. 12 =
Dec. 2006 <http://www.xreferplus.com/
     entry.jsp?xrefid=3D5868377&=
amp;secid=3DA000292->. 
"Mercy Otis Warren." Encyclopedia of World =
Biography. 2nd ed. Vol. 16. Detroit, MI: Thomson =
Gale,
     1998. 120-121. Gale =
Virtual Reference Library. Thomson Gale. Archbishop Carroll HS, =
Radnor, PA.
     12 Dec. 2006 =
<http://infotrac.galegroup.com/itweb/?db=3DGVRL>. 
Old-Time School in Pennsylvania, from Harper's Magazine. =
litho. 1881. Bridgeman Art Library =
Archive.
     Xreferplus. Archbishop =
Carroll HS, Radnor, PA. 12 Dec. 2006 =
<http://ww.xreferplus.com/entry/
     3325014>. 
"Phillis Wheatley." Encyclopedia of World =
Biography. Ed. Paula K Byers, Ed. 2nd ed. Vol. =
16.
     Detroit, MI: Thomson Gale, =
1998. 221-222. Gale Virtual Reference Library. Thomson =
Gale.
     Archbishop Carroll HS, =
Radnor,PA. 12 Dec. 2006 =
<http://infotrac.galegroup.com/itweb/
     ?db=3DGVRL>. =
"Rush, Benjamin." The Columbia Encyclopedia. =
2004. Xrefplus. Xrefplus. Archbishop Carroll HS, =
Radnor
     PA. 12 Dec. 2006 =
<http://www.xreferplus.com/entry/4297162>. 
View of Washington. litho. Bridgeman Art Library =
Archives. Xrefplus. Archbishop Carroll HS. 12 =
Dec.
     2006 =
<http://www.xrefplus.com/entry/3331002>. 
"Warren, Mercy Otis 1728-1814." The Cambridge Guide =
to Women's Writing in English. 1999.
     Xreferplus. =
Xreferplus. Archbishop Carroll HS,Radnor PA. 12 Dec. =
2006
     <http://www.xreferplus.c=
om/entry/5713750>. 
------=_NextPart_000_0000_01C71DE2.604E3120 Content-Type: text/css; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://www.noodletools.com/noodlebib/noodlebib.css TABLE.hdr { BACKGROUND-IMAGE: url(/noodlebib/images2/hdr_bg.gif) } TABLE.hdr_hl { BACKGROUND-IMAGE: url(/noodlebib/images2/hdr_bghl.gif) } BODY { BACKGROUND-COLOR: #ffffff } FONT { FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } TH { FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } TD { FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } P { FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } A:link { COLOR: #5454a6 } A:active { COLOR: #5454a6 } A:visited { COLOR: #5454a6 } A:hover { COLOR: #dd6900; TEXT-DECORATION: underline } TD.defineEntryCat { FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #000044; LINE-HEIGHT: 150%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } TH { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #000044; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .content { FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica } .block-title { FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Verdana, Helvetica } .maintitle { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #003980; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .bibkey { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #003980; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .pagetitle { FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #003980; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .olibtext { FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #003980; LINE-HEIGHT: = 120%; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; = TEXT-DECORATION: none } .listtitle { FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #555555; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .pubmed { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #003980; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; TEXT-DECORATION: = none } .entryType { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #0d0d6b; FONT-FAMILY: Arial, = Verdana, Helvetica, sans-serif; TEXT-DECORATION: none } .title2 { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #000000; LINE-HEIGHT: 120%; = FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .gen { FONT-SIZE: 12px; LINE-HEIGHT: 120% } .genbig { FONT-SIZE: 14px } .gensmall { FONT-SIZE: 12px } .gensmaller { FONT-SIZE: 12px } .gen10 { FONT-SIZE: 10px } .gentiny { FONT-SIZE: 9px } .helptext { FONT-SIZE: 12px } .gen { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .gen10 { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .gensmall { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .gensmaller { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .gentiny { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .genbig { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .helptext { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .bibtext { COLOR: #000000; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif } .bibtext_citeone { FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #900000; FONT-FAMILY: Arial, = Verdana, Helvetica, sans-serif } A.gen { COLOR: #5454a6; TEXT-DECORATION: none } A.gensmall { COLOR: #5454a6; TEXT-DECORATION: none } A.gensmaller { COLOR: #5454a6; TEXT-DECORATION: none } A.gentiny { COLOR: #5454a6; TEXT-DECORATION: none } A.gen10 { COLOR: #5454a6; TEXT-DECORATION: none } A.genbig { COLOR: #5454a6; TEXT-DECORATION: none } A.helptext { COLOR: #5454a6; TEXT-DECORATION: none } A.gen:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.gensmall:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.gensmaller:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.gentiny:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.gen10:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.genbig:hover { COLOR: #dd6900; TEXT-DECORATION: underline } A.helptext:hover { COLOR: #dd6900; TEXT-DECORATION: underline } .bibtext { FONT-SIZE: 12px; COLOR: #000000; LINE-HEIGHT: 130% } A.bibtext { COLOR: #006699; TEXT-DECORATION: none } A.bibtext:hover { COLOR: #dd6900; TEXT-DECORATION: underline } .subnav { FONT-SIZE: 14px; COLOR: #000000 } A.subnav { COLOR: #006699; TEXT-DECORATION: none } A.subnav:hover { TEXT-DECORATION: underline } .fieldtitle { FONT-SIZE: 12px; COLOR: #000000 } A.fieldtitle { COLOR: #006699; TEXT-DECORATION: none } A.fieldtitle:hover { COLOR: #dd6900; TEXT-DECORATION: underline } .fielddesc { FONT-SIZE: 11px; COLOR: #444444 } A.fielddesc { COLOR: #006699; TEXT-DECORATION: none } A.fielddesc:hover { COLOR: #dd6900; TEXT-DECORATION: underline } .fielderror { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ff0000 } .mainmenu { FONT-SIZE: 11px; COLOR: #000000 } A.mainmenu { COLOR: #006699; TEXT-DECORATION: none } A.mainmenu:hover { COLOR: #dd6900; TEXT-DECORATION: underline } .cattitle { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #006699; LETTER-SPACING: 1px } A.cattitle { COLOR: #006699; TEXT-DECORATION: none } A.cattitle:hover { TEXT-DECORATION: underline } .footer { FONT-SIZE: 11px; COLOR: #666666 } A.footer { COLOR: #006699; TEXT-DECORATION: none } A.footer:hover { TEXT-DECORATION: underline } .quote { BORDER-RIGHT: #d1d7dc 1px solid; BORDER-TOP: #d1d7dc 1px solid; = FONT-SIZE: 11px; BORDER-LEFT: #d1d7dc 1px solid; COLOR: #444444; = LINE-HEIGHT: 125%; BORDER-BOTTOM: #d1d7dc 1px solid; FONT-FAMILY: Arial, = Verdana, Helvetica, sans-serif; BACKGROUND-COLOR: #fafafa } .genindent { BORDER-RIGHT: #ffffff solid; BORDER-TOP: #ffffff solid; FONT-SIZE: = 13px; BORDER-LEFT: #ffffff 20px solid; COLOR: #000000; LINE-HEIGHT: = 150%; BORDER-BOTTOM: #ffffff solid; FONT-FAMILY: Arial, Verdana, = Helvetica, sans-serif; BACKGROUND-COLOR: #ffffff } INPUT { FONT: 12px Arial, Verdana, Helvetica, sans-serif; COLOR: #000000 } TEXTAREA { FONT: 12px Arial, Verdana, Helvetica, sans-serif; COLOR: #000000 } SELECT { FONT: 12px Arial, Verdana, Helvetica, sans-serif; COLOR: #000000 } .oneofmany { BACKGROUND-COLOR: #dddddd } .fbutton { FONT-SIZE: 11px; CURSOR: pointer; COLOR: #000000; FONT-FAMILY: Verdana, = Helvetica, sans-serif; BACKGROUND-COLOR: #dddddd } ------=_NextPart_000_0000_01C71DE2.604E3120 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://www.noodletools.com/noodlebib/javascripts/nb6.js?v=20061210 function testIsValidObject(objToTest) {=0A= if (null =3D=3D objToTest) {=0A= return false;=0A= }=0A= if ("undefined" =3D=3D typeof(objToTest) ) {=0A= return false;=0A= }=0A= return true;=0A= }=0A= =0A= function checkemail(field)=0A= {=0A= var s_email =3D field.value;=0A= =0A= if (s_email.length=3D=3D0)=0A= {=0A= return true;=0A= }=0A= =0A= if ((s_email.length < 6) ||=0A= (s_email.indexOf('@',0) < 1) ||=0A= (s_email.lastIndexOf('@') !=3D s_email.indexOf('@',0)) ||=0A= (s_email.lastIndexOf('@') > (s_email.length - 5)) ||=0A= (s_email.lastIndexOf('.') > (s_email.length - 3)) ||=0A= (s_email.lastIndexOf('.') < (s_email.length - 4)) ||=0A= (s_email.indexOf('..',0) > -1) ||=0A= (s_email.indexOf('@.',0) > -1) ||=0A= (s_email.indexOf('.@',0) > -1) ||=0A= (s_email.indexOf(',',0) > -1))=0A= {=0A= alert("Please enter a valid e-mail address (format: = name@domain.com).");=0A= field.focus();=0A= return false;=0A= }=0A= return true;=0A= }=0A= =0A= function checkphone4(field)=0A= {=0A= var s_phone4 =3D field.value;=0A= =0A= if (s_phone4.length=3D=3D0)=0A= {=0A= return true;=0A= }=0A= =0A= var regexp =3D /^(\d{4})$/;=0A= if (!regexp.test(s_phone4))=0A= {=0A= alert("Please enter the last four digits of your phone number = (format: ####).");=0A= field.focus();=0A= return false;=0A= }=0A= return true;=0A= }=0A= =0A= function openPopupHelpPage(page) {=0A= window.open("/noodlebib/popupHelp.php?page=3D" + page, "popupHelp", = "height=3D400,width=3D500,menubar=3Dno,titlebar=3Dno,toolbar=3Dyes,locati= on=3Dno,scrollbars=3Dyes,resizable=3Dyes");=0A= }=0A= =0A= function openPopupEntryHelpPage(page) {=0A= window.open("/noodlebib/popupEntryHelp.php?page=3D" + page, = "popupEntryHelp", = "height=3D400,width=3D500,menubar=3Dno,titlebar=3Dno,toolbar=3Dyes,locati= on=3Dno,scrollbars=3Dyes,resizable=3Dyes");=0A= }=0A= =0A= function popupWin(page) {=0A= window.open(page, "popupWin", = "height=3D475,width=3D440,menubar=3Dno,titlebar=3Dno,toolbar=3Dyes,locati= on=3Dno,scrollbars=3Dyes,resizable=3Dyes");=0A= }=0A= =0A= function popupSizedWin(page, height, width) {=0A= window.open(page, "popupWin", "height=3D" + height + ",width=3D" + = width + = ",menubar=3Dno,titlebar=3Dno,toolbar=3Dyes,location=3Dno,scrollbars=3Dyes= ,resizable=3Dyes");=0A= }=0A= =0A= function doOnLoad() {=0A= window.location.replace("/noodlebib/mybib.php");=0A= }=0A= =0A= function loadPage(page) {=0A= window.location.replace(page);=0A= }=0A= =0A= function selectBibHeader(form) {=0A= var bibHeader =3D = form.bibHeaderSelect.options[form.bibHeaderSelect.selectedIndex].value;=0A= window.location.replace("/noodlebib/mybib.php?setheader=3D" + = bibHeader);=0A= }=0A= =0A= function ltrim ( s ) {=0A= return s.replace( /^\s*/, "" )=0A= }=0A= =0A= function rtrim ( s ) {=0A= return s.replace( /\s*$/, "" );=0A= }=0A= =0A= function trim ( s ) {=0A= return rtrim(ltrim(s));=0A= }=0A= =0A= function doUpdateViewableName() {=0A= =0A= var myviewablename =3D document.shareForm.myviewablename.value;=0A= =0A= if (myviewablename =3D=3D "") { =0A= alert("Please enter your viewable name (the name by which your = students refer to you)."); =0A= document.shareForm.myviewablename.focus();=0A= return false; =0A= }=0A= =0A= document.shareForm.updatenameonly.value =3D "1";=0A= document.shareForm.ACTION.value =3D "";=0A= document.shareForm.submit();=0A= return true;=0A= }=0A= =0A= function handleShareSubmit() {=0A= =0A= var nickname =3D document.shareForm.nickname.value;=0A= =0A= if (nickname =3D=3D "") { =0A= alert("Please enter a class name."); =0A= document.shareForm.nickname.focus();=0A= return false; =0A= }=0A= =0A= return true;=0A= }=0A= =0A= function handleDoRenameSubmit() {=0A= =0A= var listdesc =3D document.dorenameForm.listdesc.value;=0A= =0A= if (listdesc =3D=3D "") { =0A= alert("Please enter a new description for this source list."); =0A= document.dorenameForm.listdesc.focus();=0A= return false; =0A= }=0A= =0A= return true;=0A= }=0A= =0A= function handleDoRenameTagSubmit() {=0A= =0A= var newname =3D document.dorenameForm.newname.value;=0A= =0A= if (newname =3D=3D "") { =0A= alert("Please enter a new name for this tag."); =0A= document.dorenameForm.newname.focus();=0A= return false; =0A= }=0A= =0A= return true;=0A= }=0A= =0A= function handleDoShareSubmit() {=0A= =0A= var nickname =3D document.doshareForm.nickname.value;=0A= var myviewablename =3D document.doshareForm.myviewablename.value;=0A= =0A= if (myviewablename =3D=3D "") { =0A= alert("Please enter your name so that your teacher can identify you = (they may not know your username)."); =0A= document.doshareForm.myviewablename.focus();=0A= return false; =0A= }=0A= =0A= if (nickname =3D=3D "") { =0A= alert("Please enter the class name you wish to share your selected = lists with, then click Share Lists."); =0A= document.doshareForm.nickname.focus();=0A= return false; =0A= }=0A= =0A= return true;=0A= }=0A= =0A= function handleDoMergeSubmit() {=0A= var desc =3D document.domergeForm.listdesc.value;=0A= if (desc =3D=3D "") { =0A= alert("Please enter a description for the merged list. You will use = this description to identify the list in your personal folder, so try to = make it brief but accurate."); =0A= document.domergeForm.listdesc.focus();=0A= return false; =0A= }=0A= return true;=0A= }=0A= =0A= function handleDoCopySubmit() {=0A= var desc =3D document.docopyForm.listdesc.value;=0A= var copytoother =3D document.docopyForm.copyto[1].checked;=0A= var copytoname =3D document.docopyForm.copytoname.value;=0A= =0A= if (copytoother && copytoname =3D=3D "") { =0A= alert("Please indicate the user to whom you wish to transfer this list = (enter the username)."); =0A= document.docopyForm.copytoname.focus();=0A= return false; =0A= }=0A= =0A= if (desc =3D=3D "") { =0A= alert("Please enter a description for the new list. This description = will identify the list in the personal folder in which you copy the = list, so try to make it brief but accurate."); =0A= document.docopyForm.listdesc.focus();=0A= return false; =0A= }=0A= return true;=0A= }=0A= =0A= function handleNewbibSubmit() {=0A= var desc =3D document.newbibForm.listdesc.value;=0A= var styles =3D document.newbibForm.liststyle;=0A= =0A= if (!styles[0].checked && !styles[1].checked && !styles[2].checked) {=0A= alert("Please select a list style (MLA Starter, MLA Advanced, or APA = Advanced)."); =0A= return false; =0A= }=0A= =0A= if (desc =3D=3D "") { =0A= alert("Please enter a description for this list. You will use this = description to identify the list in your personal folder, so try to make = it brief but accurate."); =0A= document.newbibForm.listdesc.focus();=0A= return false; =0A= }=0A= return true;=0A= }=0A= =0A= function doentriesaction(type) {=0A= var form =3D document.bibForm;=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= var entryids =3D "";=0A= var firstID =3D 1;=0A= var numselected =3D 0;=0A= var allchecked =3D 1;=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= =0A= var idx =3D "";=0A= var id =3D "";=0A= var shared =3D 0;=0A= =0A= var uIndex =3D str.indexOf("_");=0A= if (uIndex !=3D -1) {=0A= result0 =3D str.substring(0,uIndex);=0A= result1 =3D str.substring(uIndex+1, str.length);=0A= =0A= if (result0 =3D=3D "entrysel") {=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= idx =3D result1;=0A= id =3D form.elements[nIndex].value; =0A= } else {=0A= allchecked =3D 0;=0A= }=0A= }=0A= }=0A= =0A= if (idx !=3D "") {=0A= if (firstID =3D=3D 0) {=0A= entryids =3D entryids + ",";=0A= }=0A= entryids =3D entryids + id;=0A= firstID =3D 0;=0A= numselected++;=0A= }=0A= }=0A= =0A= form.elements['allselected'].value =3D allchecked;=0A= form.elements['selentryids'].value =3D entryids; =0A= =0A= if (type =3D=3D "copy") {=0A= form.action =3D "/noodlebib/copyEntry.php";=0A= if (numselected < 1) {=0A= alert("Please select one or more entries to copy by checking the = boxes above.");=0A= return;=0A= }=0A= } else if (type =3D=3D "delete") {=0A= form.action =3D "/noodlebib/deleteEntry.php";=0A= if (numselected < 1) {=0A= alert("Please select at least one entry to delete by checking one or = more boxes above.");=0A= return;=0A= }=0A= =0A= if (numselected =3D=3D 1) {=0A= if (!confirm("Are you sure you wish to delete the entry selected = above?")) {=0A= return;=0A= }=0A= } else if (numselected > 1) {=0A= if (!confirm("Are you sure you wish to delete all of the entries that = are selected above?")) {=0A= return;=0A= }=0A= }=0A= } else if (type =3D=3D "tag") {=0A= form.action =3D "/noodlebib/tagEntry.php";=0A= if (numselected < 1) {=0A= alert("Please select at least one entry to label by checking one or = more boxes above.");=0A= return;=0A= }=0A= =0A= var atval =3D = form.elements['applytag'].options[form.elements['applytag'].selectedIndex= ].value;=0A= =0A= if (atval =3D=3D "") {=0A= alert("Please select the label to apply to the marked entries.");=0A= return;=0A= } =0A= if (atval.substring(0,3) =3D=3D "tg_") {=0A= alert("Please select a label (not a label category) to apply to the = marked entries.");=0A= return;=0A= }=0A= =0A= if (atval =3D=3D "[[REMOVE]]") {=0A= if (!confirm("Are you sure you wish to remove the labels from all = marked entries?")) {=0A= return;=0A= }=0A= }=0A= } else if (type =3D=3D "deletetag") {=0A= form.action =3D "/noodlebib/deleteTag.php";=0A= var atval =3D = form.elements['applytag'].options[form.elements['applytag'].selectedIndex= ].value;=0A= if (atval =3D=3D "" || atval =3D=3D "[[REMOVE]]" || atval =3D=3D = "[[NEW]]") {=0A= alert("Please select the label or category to delete.");=0A= return;=0A= } else {=0A= isgroup =3D (atval.substring(0,3) =3D=3D "tg_");=0A= =0A= if (isgroup && (atval.substring(3) =3D=3D "1" || atval.substring(3) = =3D=3D "2")) {=0A= alert("This predefined category cannot be deleted.");=0A= return;=0A= }=0A= =0A= if (!isgroup) {=0A= var tid =3D atval.substring(atval.lastIndexOf("|") + 1);=0A= if (tid <=3D 6) {=0A= alert("This predefined label cannot be deleted.");=0A= return;=0A= }=0A= }=0A= =0A= if (isgroup) {=0A= if (!confirm("Are you sure you wish to delete this category and all = labels within the category?\n\nNote: The labels will also be removed = from any citations they are currently associated with.")) {=0A= return;=0A= }=0A= } else {=0A= if (!confirm("Are you sure you wish to delete this label?\n\nNote: = The label will also be removed from any citations it is currently = associated with.")) {=0A= return;=0A= }=0A= }=0A= }=0A= }=0A= =0A= form.submit();=0A= }=0A= =0A= function doaction(type) {=0A= var form =3D document.mainForm;=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= var bibids =3D "";=0A= var ubrids =3D "";=0A= var firstID =3D 1;=0A= var firstSharedID =3D 1;=0A= var numselected =3D 0;=0A= var numsharedselected =3D 0;=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= =0A= var idx =3D "";=0A= var id =3D "";=0A= var shared =3D 0;=0A= =0A= var uIndex =3D str.indexOf("_");=0A= if (uIndex !=3D -1) {=0A= result0 =3D str.substring(0,uIndex);=0A= result1 =3D str.substring(uIndex+1, str.length);=0A= =0A= if (result0 =3D=3D "sel" || result0 =3D=3D "sharedsel") {=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= idx =3D result1;=0A= id =3D form.elements[nIndex].value; =0A= }=0A= if (result0 =3D=3D "sharedsel") {=0A= shared =3D 1;=0A= } else {=0A= shared =3D 0;=0A= }=0A= }=0A= }=0A= =0A= if (idx !=3D "") {=0A= if (shared =3D=3D 1) {=0A= if (firstSharedID =3D=3D 0) {=0A= ubrids =3D ubrids + ",";=0A= }=0A= ubrids =3D ubrids + id;=0A= firstSharedID =3D 0;=0A= numsharedselected++; =0A= } else {=0A= if (firstID =3D=3D 0) {=0A= bibids =3D bibids + ",";=0A= }=0A= bibids =3D bibids + id;=0A= firstID =3D 0;=0A= numselected++;=0A= }=0A= }=0A= }=0A= =0A= form.elements['selids'].value =3D bibids;=0A= form.elements['selsharedids'].value =3D ubrids; =0A= =0A= if (type =3D=3D "share") {=0A= form.action =3D "/noodlebib/doshare.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select at least one list to share by checking one or = more boxes above.");=0A= return;=0A= }=0A= } else if (type =3D=3D "rename") {=0A= form.action =3D "/noodlebib/dorename.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select a list to rename by checking one of the boxes = above.");=0A= return;=0A= } else if (numselected > 1) {=0A= alert("Only one list may be renamed at a time. Please check a single = box above, then click Rename again.");=0A= return;=0A= }=0A= } else if (type =3D=3D "copy") {=0A= form.action =3D "/noodlebib/docopylist.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select a list to copy by checking one of the boxes = above.");=0A= return;=0A= } else if (numselected > 1) {=0A= alert("Only one list may be copied at a time. Please check a single = box above, then click Copy again.");=0A= return;=0A= }=0A= } else if (type =3D=3D "merge") {=0A= form.action =3D "/noodlebib/domerge.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 2) {=0A= alert("Please select at least two lists to merge by checking two or = more boxes above.");=0A= return;=0A= }=0A= } else if (type =3D=3D "delete") {=0A= form.action =3D "/noodlebib/dodelete.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select at least one list to delete by checking one or = more boxes above.");=0A= return;=0A= }=0A= =0A= if (numselected =3D=3D 1) {=0A= if (!confirm("Are you sure you wish to delete the list selected = above?")) {=0A= return;=0A= }=0A= } else if (numselected > 1) {=0A= if (!confirm("Are you sure you wish to delete the lists selected = above?")) {=0A= return;=0A= }=0A= }=0A= } else if (type =3D=3D "unshare") {=0A= form.action =3D "/noodlebib/dounshare.php";=0A= form.ACTION.value =3D "";=0A= if (numsharedselected < 1) {=0A= alert("Please select at least one list to remove by checking one or = more boxes above.");=0A= return;=0A= }=0A= =0A= if (numsharedselected =3D=3D 1) {=0A= if (!confirm("Are you sure you wish to unshare the list selected = above? You will be unable to view the list unless the author shares it = with you again.")) {=0A= return;=0A= }=0A= } else if (numsharedselected > 1) {=0A= if (!confirm("Are you sure you wish to unshare the lists selected = above? You will be unable to view them unless the authors share them = with you again.")) {=0A= return;=0A= }=0A= }=0A= }=0A= =0A= form.submit();=0A= }=0A= =0A= function dotagaction(type) {=0A= var form =3D document.mainForm;=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= var tagids =3D "";=0A= var firstID =3D 1;=0A= var numselected =3D 0;=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= =0A= var idx =3D "";=0A= var id =3D "";=0A= =0A= var uIndex =3D str.indexOf("_");=0A= if (uIndex !=3D -1) {=0A= result0 =3D str.substring(0,uIndex);=0A= result1 =3D str.substring(uIndex+1, str.length);=0A= =0A= if (result0 =3D=3D "sel") {=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= idx =3D result1;=0A= id =3D form.elements[nIndex].value; =0A= }=0A= }=0A= }=0A= =0A= if (idx !=3D "") {=0A= if (firstID =3D=3D 0) {=0A= tagids =3D tagids + ",";=0A= }=0A= tagids =3D tagids + id;=0A= firstID =3D 0;=0A= numselected++;=0A= }=0A= }=0A= =0A= form.elements['selids'].value =3D tagids;=0A= =0A= if (type =3D=3D "rename") {=0A= form.action =3D "/noodlebib/note_dotagrename.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select a tag to rename by checking one of the boxes = above.");=0A= return;=0A= } else if (numselected > 1) {=0A= alert("Only one tag may be renamed at a time. Please check a single = box above, then click Rename again.");=0A= return;=0A= }=0A= } else if (type =3D=3D "delete") {=0A= form.action =3D "/noodlebib/note_dotagdelete.php";=0A= form.ACTION.value =3D "";=0A= if (numselected < 1) {=0A= alert("Please select at least one tag to delete by checking one or = more boxes above.");=0A= return;=0A= }=0A= =0A= if (numselected =3D=3D 1) {=0A= if (!confirm("Are you sure you wish to delete the tag selected = above?")) {=0A= return;=0A= }=0A= } else if (numselected > 1) {=0A= if (!confirm("Are you sure you wish to delete the tags selected = above?")) {=0A= return;=0A= }=0A= }=0A= }=0A= =0A= form.submit();=0A= }=0A= =0A= function doshareaction(type) {=0A= var form =3D document.shareForm;=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= var shareids =3D "";=0A= var firstID =3D 1;=0A= var numselected =3D 0;=0A= var listsshared =3D 0;=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= =0A= var idx =3D "";=0A= var shareid =3D "";=0A= =0A= var uIndex =3D str.indexOf("_");=0A= if (uIndex !=3D -1) {=0A= result0 =3D str.substring(0,uIndex);=0A= result1 =3D str.substring(uIndex+1, str.length);=0A= =0A= if (result0 =3D=3D "sel") {=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= idx =3D result1;=0A= shareid =3D form.elements[nIndex].value;=0A= =0A= eval("var numshared =3D form.elements['numshared_" + idx + = "'].value;");=0A= if (numshared > 0) {=0A= listsshared =3D 1;=0A= }=0A= }=0A= }=0A= }=0A= =0A= if (idx !=3D "") {=0A= if (firstID =3D=3D 0) {=0A= shareids =3D shareids + ",";=0A= }=0A= shareids =3D shareids + shareid;=0A= firstID =3D 0;=0A= numselected++;=0A= }=0A= }=0A= =0A= form.elements['selids'].value =3D shareids;=0A= =0A= if (type =3D=3D "remove") {=0A= form.action =3D "/noodlebib/share.php";=0A= form.ACTION.value =3D "removegroup";=0A= if (numselected < 1) {=0A= alert("Please select at least one class name to remove by checking = the boxes above.");=0A= return;=0A= }=0A= }=0A= =0A= if (type =3D=3D "add") {=0A= form.action =3D "/noodlebib/share.php";=0A= form.ACTION.value =3D "startaddgroup";=0A= }=0A= =0A= if (type =3D=3D "remove" && listsshared =3D=3D 1) {=0A= var confirmmsg =3D "There are lists shared with you via this class = name. By removing it, you will no longer be able to view lists that = were shared with you through this class name. Are you sure you want to = continue?";=0A= if (numselected > 1)=0A= confirmmsg =3D "There are lists shared with you via these class = names. By removing them, you will no longer be able to view lists that = were shared with you through those class names. Are you sure you want to = continue?";=0A= =0A= if (confirm(confirmmsg)) {=0A= form.submit();=0A= } else {=0A= return;=0A= }=0A= }=0A= =0A= form.submit();=0A= }=0A= =0A= function verifyWizard(form, formaction) {=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= =0A= var page =3D "";=0A= var dbSelection =3D "";=0A= var URL2 =3D "";=0A= var ismanual =3D "";=0A= var searchTerms =3D "";=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= if (str =3D=3D "page") {=0A= page =3D form.elements[nIndex].value;=0A= } else if (str =3D=3D "dbSelection") {=0A= var elementType =3D form.elements[nIndex].type;=0A= =0A= if (elementType =3D=3D "radio") {=0A= if (form.elements[nIndex].checked =3D=3D true)=0A= dbSelection =3D form.elements[nIndex].value;=0A= } else {=0A= dbSelection =3D form.elements[nIndex].value;=0A= }=0A= } else if (str =3D=3D "URL2" || str =3D=3D "URL") {=0A= var urlVal =3D form.elements[nIndex].value;=0A= if (urlVal !=3D "") {=0A= colonPos =3D urlVal.indexOf(":");=0A= if (colonPos =3D=3D -1 || urlVal.substr(colonPos, 3) !=3D "://") {=0A= alert("Invalid URL. Be sure to prepend 'http://' to the URL. For = example, http://infotrac.galegroup.com/.");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= }=0A= }=0A= } else if (str =3D=3D "ismanual") {=0A= ismanual =3D form.elements[nIndex].value;=0A= } else if (str =3D=3D "searchTerms") {=0A= searchTerms =3D form.elements[nIndex].value;=0A= }=0A= }=0A= =0A= if (page =3D=3D "showMatches") { // check that they've entered search = terms=0A= if (trim(searchTerms) =3D=3D "") {=0A= alert("Please enter one or more search terms to find the subscription = database you are using.");=0A= return 0;=0A= }=0A= var CQResearcher =3D /CQ Researcher/i=0A= if (CQResearcher.test(searchTerms) =3D=3D true) {=0A= alert("CQ Researcher Online is an online magazine. Click \"back\" and = select \"periodical subscription\" instead of \"subscription database.\" = For detailed information about how to cite CQ Researcher Online, refer = to the knowledge base = article:\n\nhttp://www.noodletools.com/kb/index.php?article=3D135");=0A= return 0;=0A= }=0A= } else if (page =3D=3D "url") { // make sure they selected a db from = the search results=0A= if (ismanual !=3D 1 && dbSelection =3D=3D "") {=0A= alert("Please select a database from the list, or click the link = provided to enter the database information manually.");=0A= return 0;=0A= }=0A= }=0A= =0A= form.action =3D formaction;=0A= form.submit();=0A= }=0A= =0A= function isEmptyVal(val) {=0A= if (val =3D=3D "" || val =3D=3D "nostateselected") return true;=0A= return false;=0A= }=0A= =0A= function verifyForm(form) {=0A= var numElements =3D form.elements.length;=0A= var nIndex;=0A= =0A= var SourceType =3D "";=0A= var EntryType =3D "";=0A= =0A= var misc21val =3D "";=0A= =0A= var checkforonlinefields =3D false;=0A= var oneonlinechecked =3D false;=0A= myRegExpOnlineField =3D /online\d/=0A= =0A= myRegExpWasInPrintField =3D /inprint\d/=0A= var checkforwasinprintfields =3D false;=0A= var onewasinprintchecked =3D false;=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= var ilastname =3D str.indexOf('lastname');=0A= var iSN =3D str.indexOf('SN');=0A= =0A= if (str.indexOf("[]") > 0)=0A= {=0A= setAllOptions(form.elements[nIndex], true);=0A= }=0A= =0A= else if (str =3D=3D "URL" || str =3D=3D "req_URL" || str =3D=3D "URL2" = || str =3D=3D "req_URL2") {=0A= var urlVal =3D form.elements[nIndex].value;=0A= if (urlVal !=3D "") {=0A= colonPos =3D urlVal.indexOf(":");=0A= if (colonPos =3D=3D -1 || urlVal.substr(colonPos, 3) !=3D "://") {=0A= alert("Invalid URL. Make sure you prepend 'http://', 'telnet://', = 'ftp://', etc. to the URL. For example, 'http://www.noodletools.com/'.");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= }=0A= }=0A= }=0A= =0A= else if (ilastname > 0 && iSN < 0 && form.elements[nIndex].value !=3D = "")=0A= {=0A= var thisname =3D str.substring(0, ilastname);=0A= addName(form, thisname, thisname, 8);=0A= }=0A= =0A= else if (str =3D=3D "SourceType") {=0A= var elementType =3D form.elements[nIndex].type;=0A= =0A= if (elementType =3D=3D "radio") {=0A= if (form.elements[nIndex].checked =3D=3D true)=0A= SourceType =3D form.elements[nIndex].value;=0A= } else {=0A= SourceType =3D form.elements[nIndex].value;=0A= }=0A= continue;=0A= }=0A= =0A= else if (str =3D=3D "EntryType") {=0A= EntryType =3D form.elements[nIndex].value;=0A= }=0A= =0A= var type =3D form.elements[nIndex].type;=0A= if (type =3D=3D "text") {=0A= var val =3D form.elements[nIndex].value;=0A= if (val.indexOf("|") !=3D -1 || val.indexOf("<") !=3D -1 || = val.indexOf(">") !=3D -1) {=0A= alert("Sorry, '|, <, and >' are reserved characters and cannot be = used in NoodleBib forms.");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= }=0A= }=0A= =0A= var uIndex =3D str.indexOf("_");=0A= if (uIndex !=3D -1) {=0A= result0 =3D str.substring(0,uIndex);=0A= result1 =3D str.substring(uIndex+1, str.length);=0A= =0A= if (result0 =3D=3D "Misc21" && result1 !=3D "") {=0A= var val21 =3D "";=0A= var eType =3D form.elements[nIndex].type;=0A= =0A= if (eType =3D=3D "radio") {=0A= var theval =3D form.elements[nIndex].value;=0A= if (myRegExpOnlineField.test(theval) =3D=3D true) { =0A= checkforonlinefields =3D true;=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= oneonlinechecked =3D true;=0A= }=0A= }=0A= if (myRegExpWasInPrintField.test(theval) =3D=3D true) { =0A= checkforwasinprintfields =3D true;=0A= if (form.elements[nIndex].checked =3D=3D true) {=0A= onewasinprintchecked =3D true;=0A= }=0A= }=0A= if (form.elements[nIndex].checked =3D=3D true)=0A= val21 =3D theval;=0A= } else {=0A= val21 =3D form.elements[nIndex].value;=0A= }=0A= =0A= if (val21 !=3D "") {=0A= if (misc21val !=3D "") misc21val +=3D "|";=0A= misc21val +=3D val21;=0A= }=0A= }=0A= =0A= if ((result0 =3D=3D "req" || (result0 =3D=3D "onlinereq" && = SourceType =3D=3D "online")) && (form.elements[nIndex].value =3D=3D = "http://" || form.elements[nIndex].value =3D=3D "ftp://")) {=0A= alert("Please fill in all required fields (those marked with a *).");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= }=0A= =0A= if (((result0 =3D=3D "req" || result0 =3D=3D "reqyear") && = isEmptyVal(form.elements[nIndex].value)) ||=0A= (((result0 =3D=3D "onlinereq" || result0 =3D=3D "onlinereqyear") = && (SourceType =3D=3D "online") && = isEmptyVal(form.elements[nIndex].value))) ||=0A= (((result0 =3D=3D "printreq" || result0 =3D=3D "printreqyear") && = (SourceType =3D=3D "print") && isEmptyVal(form.elements[nIndex].value))) = ||=0A= (((result0 =3D=3D "microreq" || result0 =3D=3D "microreqyear") && = (SourceType =3D=3D "microfiche") && = isEmptyVal(form.elements[nIndex].value))) ||=0A= (((result0 =3D=3D "lleafreq" || result0 =3D=3D "lleafreqyear") && = (SourceType =3D=3D "looseleaf") && = isEmptyVal(form.elements[nIndex].value))) ||=0A= (((result0 =3D=3D "emediareq" || result0 =3D=3D "emediareqyear") = && (SourceType =3D=3D "CD-ROM" || SourceType =3D=3D "Disk" || SourceType = =3D=3D "emedia") && isEmptyVal(form.elements[nIndex].value)))) =0A= {=0A= // HANDLE SINGLE NAME FIELDS LATER=0A= if (result1 !=3D "AuthorID" && result1 !=3D "Author2ID" && result1 = !=3D "EditorID" && result1 !=3D "Editor2ID") {=0A= alert("Please fill in all required fields (those marked with a = *).");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= }=0A= }=0A= else if (result0 =3D=3D "reqyear" || result0 =3D=3D "onlinereqyear" = || result0 =3D=3D "printreqyear" || =0A= result0 =3D=3D "microreqyear" || = result0 =3D=3D "lleafreqyear" ||=0A= result0 =3D=3D "emediareqyear" || result0 =3D=3D "year") =0A= {=0A= var strYear =3D form.elements[nIndex].value; =0A= var strLower =3D strYear.toLowerCase();=0A= =0A= // allow AD, BC, etc.=0A= //myRegExpDateField =3D = /(AD|BC|BCE|CE|A\.D\.|B\.C\.|B\.C\.E\.|C\.E\.)/i=0A= //if (myRegExpDateField.test(strYear) =3D=3D false) { =0A= =0A= // allow year + letter, as in 2003b=0A= var addletter =3D "";=0A= var = letters=3D"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";=0A= if (strYear.length =3D=3D 5 && = letters.indexOf(strYear.substring(4,5))>=3D0) { =0A= addletter =3D strYear.substring(4,5).toLowerCase();=0A= strYear =3D strYear.substring(0,4); =0A= }=0A= =0A= if (strYear !=3D "" && strLower !=3D "none" && strLower !=3D "in = press" &&=0A= (!(strYear.length > 5 && strYear.length < 10 && = strYear.substring(4,5) =3D=3D "-")) && =0A= (!(strYear.substring(0,1) =3D=3D "[" && = strYear.substring(strYear.length-1,strYear.length) =3D=3D "]"))) {=0A= =0A= if (isNaN(parseInt(strYear)) || strYear.length !=3D 4 || = parseInt(strYear) < 1000 || parseInt(strYear) > 2050 ) =0A= {=0A= alert("Please provide a valid 4-digit year or range of years for = this field.\n\nFor example:\n2001\n1959-1963\n1934-50");=0A= form.elements[nIndex].focus();=0A= return 0;=0A= } else {=0A= form.elements[nIndex].value =3D parseInt(strYear) + "" + = addletter;=0A= }=0A= }=0A= //}=0A= }=0A= }=0A= }=0A= =0A= if (SourceType =3D=3D "") {=0A= alert("Please select the publication medium (print, online, etc.) for = your source.");=0A= return 0;=0A= }=0A= =0A= if (checkforwasinprintfields && !onewasinprintchecked) {=0A= alert("Please indicate whether or not specific information about an = original print version is provided.");=0A= return 0;=0A= }=0A= =0A= if (checkforonlinefields && !oneonlinechecked) {=0A= alert("Please select the online retrieval mechanism (unique URL, = subscription database, etc.).");=0A= return 0;=0A= }=0A= =0A= // post-processing for single name fields and misc=0A= var oneNameField;=0A= var snf =3D ""; var snm =3D ""; var snl =3D ""; var sns =3D "";=0A= var singlenamerequired =3D 0;=0A= var currentNameField =3D "";=0A= var lastNameField =3D "";=0A= =0A= var titleField =3D "";=0A= var alternatetitleField =3D "";=0A= var articletitleField =3D "";=0A= =0A= var Title =3D "";=0A= var AlternateTitle =3D "";=0A= var ArticleTitle =3D "";=0A= var Misc21 =3D "";=0A= =0A= var doAddName =3D "";=0A= =0A= for (nIndex =3D 0; nIndex < numElements; nIndex++) {=0A= var str =3D form.elements[nIndex].name;=0A= var val =3D form.elements[nIndex].value;=0A= =0A= if (str =3D=3D "AuthorID" || str =3D=3D "Author2ID" || str =3D=3D = "req_AuthorID" || str =3D=3D "req_Author2ID" ||=0A= str =3D=3D "EditorID" || str =3D=3D "req_EditorID" || str =3D=3D = "Editor2ID" || str =3D=3D "req_Editor2ID" ||=0A= str =3D=3D "onlinereq_AuthorID" || str =3D=3D = "onlinereq_Author2ID" || str =3D=3D "onlinereq_EditorID" || str =3D=3D = "onlinereq_Editor2ID" ||=0A= str =3D=3D "printreq_AuthorID" || str =3D=3D "printreq_Author2ID" = || str =3D=3D "printreq_EditorID" || str =3D=3D "printreq_Editor2ID" ||=0A= str =3D=3D "emediareq_AuthorID" || str =3D=3D = "emediareq_Author2ID" || str =3D=3D "emediareq_EditorID" || str =3D=3D = "emediareq_Editor2ID") =0A= {=0A= =0A= if ((str =3D=3D "req_AuthorID" || str =3D=3D "req_Author2ID" || str = =3D=3D "req_EditorID" || str =3D=3D "req_Editor2ID") ||=0A= ((str =3D=3D "onlinereq_AuthorID" || str =3D=3D = "onlinereq_Author2ID" || str =3D=3D "onlinereq_EditorID" || str =3D=3D = "onlinereq_Editor2ID") && (SourceType =3D=3D "online")) ||=0A= ((str =3D=3D "printreq_AuthorID" || str =3D=3D = "printreq_Author2ID" || str =3D=3D "printreq_EditorID" || str =3D=3D = "printreq_Editor2ID") && (SourceType =3D=3D "print")) ||=0A= ((str =3D=3D "emediareq_AuthorID" || str =3D=3D = "emediareq_Author2ID" || str =3D=3D "emediareq_EditorID" || str =3D=3D = "emediareq_Editor2ID") && ($SourceType =3D=3D "CD-ROM" || $SourceType = =3D=3D "Disk")))=0A= {=0A= singlenamerequired =3D 1;=0A= }=0A= oneNameField =3D form.elements[nIndex];=0A= if (currentNameField !=3D "" && currentNameField !=3D oneNameField) {=0A= if (snl !=3D "") {=0A= currentNameField.value =3D snl + "%" + snf + "%" + snm + "%" + sns;=0A= }=0A= =0A= if (singlenamerequired =3D=3D 1 && snl =3D=3D "") {=0A= alert("Please fill in all required fields (those marked with a = *).");=0A= if (lastNameField) lastNameField.focus();=0A= return 0;=0A= }=0A= } =0A= currentNameField =3D oneNameField; =0A= } else if (str.indexOf("SNfirstname") >=3D 0) {=0A= snf =3D val;=0A= } else if (str.indexOf("SNmiddlename") >=3D 0) {=0A= snm =3D val;=0A= } else if (str.indexOf("SNlastname") >=3D 0) {=0A= snl =3D val;=0A= lastNameField =3D form.elements[nIndex];=0A= =0A= if (singlenamerequired =3D=3D 1 && snl =3D=3D "") {=0A= alert("Please fill in all required fields (those marked with a *).");=0A= if (lastNameField) lastNameField.focus();=0A= return 0;=0A= }=0A= =0A= singlenamerequired =3D 0;=0A= =0A= } else if (str.indexOf("SNsuffix") >=3D 0) {=0A= sns =3D val;=0A= } else if (str.indexOf("ArticleTitle") >=3D 0) {=0A= ArticleTitle =3D val;=0A= articletitleField =3D form.elements[nIndex];=0A= } else if (str.indexOf("AlternateTitle") >=3D 0) {=0A= AlternateTitle =3D val;=0A= alternatetitleField =3D form.elements[nIndex];=0A= } else if (str.indexOf("Title") >=3D 0) {=0A= Title =3D val;=0A= titleField =3D form.elements[nIndex];=0A= } else if (str.indexOf("Misc21") >=3D 0) {=0A= Misc21 =3D val;=0A= }=0A= }=0A= =0A= if (snl !=3D "") {=0A= currentNameField.value =3D snl + "%" + snf + "%" + snm + "%" + sns;=0A= }=0A= =0A= if (misc21val !=3D "") {=0A= form.Misc21.value =3D misc21val;=0A= }=0A= =0A= if (EntryType =3D=3D "Web Site") {=0A= if (Misc21.indexOf("general") >=3D 0 && Misc21.indexOf("online5") < 0 = && Title =3D=3D "" && AlternateTitle =3D=3D "") {=0A= alert("You must specify the title of the Web page.");=0A= if (titleField) titleField.focus();=0A= return 0;=0A= } else if (Title !=3D "" && Title.substr(Title.indexOf(":"), 3) =3D=3D = "://") {=0A= alert("The title of the Web page should not be a URL.\n\nIf a URL is = displayed in the title bar of the browser, check for a title at the top = of the Web page itself. If you do not find a title there either, leave = the \"Title\" field blank and provide an alternate description like = \"Damon's home page\" in the field below it.");=0A= if (titleField) titleField.focus();=0A= return 0;=0A= } else if (AlternateTitle !=3D "" && = AlternateTitle.substr(AlternateTitle.indexOf(":"), 3) =3D=3D "://") {=0A= alert("A URL is not a valid description of the Web page. Instead, = provide a simple description such as \"Damon's home page\".");=0A= if (alternatetitleField) alternatetitleField.focus();=0A= return 0;=0A= }=0A= }=0A= =0A= return 1;=0A= }=0A= =0A= function doVerify(form, skipVerify, checkForErrors, formaction) {=0A= =0A= if (skipVerify =3D=3D 2) {=0A= form.action =3D formaction;=0A= form.submit();=0A= } else if (skipVerify =3D=3D 1 || verifyForm(form) =3D=3D 1) {=0A= if (skipVerify) form.entryID.value=3D"CANCEL";=0A= =0A= if (checkForErrors =3D=3D "MLA") {=0A= form.checkForErrors.value =3D "MLA";=0A= } else if (checkForErrors =3D=3D "APA") {=0A= form.checkForErrors.value =3D "APA";=0A= } else if (checkForErrors =3D=3D "online1") {=0A= form.checkForErrors.value =3D "online1";=0A= } else if (checkForErrors =3D=3D "online2") {=0A= form.checkForErrors.value =3D "online2";=0A= } else if (checkForErrors =3D=3D "online3") {=0A= form.checkForErrors.value =3D "online3";=0A= } else if (checkForErrors =3D=3D "online5") {=0A= form.checkForErrors.value =3D "online5";=0A= }=0A= =0A= form.action =3D formaction;=0A= form.submit();=0A= } else {=0A= return;=0A= }=0A= }=0A= =0A= function doBack(form, formaction, screennum) {=0A= =0A= if (screennum =3D=3D 1) {=0A= if (form.page.value =3D=3D "show") { =0A= form.page.value =3D "showMatches"; =0A= form.wizardComplete.value =3D 0;=0A= }=0A= else if (form.page.value =3D=3D "url") { =0A= form.page.value =3D ""; =0A= form.wizardComplete.value =3D 0;=0A= }=0A= else if (form.page.value =3D=3D "showMatches") { =0A= if (form.usedDetails.value =3D=3D 1) { // went through details = screen - return to it=0A= form.SourceTypeDetailPage.value =3D "1";=0A= } else if (form.usedSourceType.value =3D=3D 1) { // went through = sourcetype screen - return to it=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= } else { // otherwise, back to validation screen=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= form.extrainfo.value =3D "";=0A= } =0A= }=0A= } else if (screennum =3D=3D 2) { // sourcetype screen (return to = validation screen)=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= form.extrainfo.value =3D "";=0A= =0A= // special cases=0A= if (form.ADD.value =3D=3D "Letter or Memo, Unpublished or Personal") {=0A= form.ADD.value =3D "Letter or Memo";=0A= } else if (form.ADD.value =3D=3D "Letter, Published in a Collection") {=0A= form.ADD.value =3D "Letter or Memo";=0A= } else if (form.ADD.value =3D=3D "Manuscript or Typescript") {=0A= form.ADD.value =3D "Manuscript, Essay, Notes, or Other Unpublished = Work";=0A= } else if (form.ADD.value =3D=3D "Essay or Working Paper, = Unpublished") {=0A= form.ADD.value =3D "Manuscript, Essay, Notes, or Other Unpublished = Work";=0A= }=0A= =0A= } else if (screennum =3D=3D 3) { // details screen=0A= if (form.usedSourceType.value =3D=3D 1) { // went through sourcetype = screen - return to it=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= } else { // otherwise, back to validation screen=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= form.extrainfo.value =3D "";=0A= }=0A= } else if (screennum =3D=3D 4) { // form=0A= =0A= if (!confirm("Are you sure you wish to return to the previous screen? = You will lose any data you have already entered in this form. Click OK = to continue or Cancel to stop.")) { return false; }=0A= =0A= if (form.wizardComplete.value =3D=3D 1) { // went through wizard - = return to it=0A= form.SourceTypeDetailPage.value =3D "2";=0A= form.page.value =3D "url"; =0A= form.wizardComplete.value =3D 0;=0A= } else if (form.usedDetails.value =3D=3D 1) { // went through details = screen - return to it=0A= form.SourceTypeDetailPage.value =3D "1";=0A= } else if (form.usedSourceType.value =3D=3D 1) { // went through = sourcetype screen - return to it=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= } else { // otherwise, back to validation screen=0A= form.SourceType.value =3D "";=0A= form.SourceTypeDetailPage.value =3D "";=0A= form.extrainfo.value =3D "";=0A= =0A= // special cases=0A= if (form.ADD.value =3D=3D "Interview, Conducted By Me") {=0A= form.ADD.value =3D "Interview";=0A= } else if (form.ADD.value =3D=3D "Software, Downloaded") {=0A= form.ADD.value =3D "Software";=0A= } else if (form.ADD.value =3D=3D "Advertisement, Online") {=0A= form.ADD.value =3D "Advertisement or Commercial";=0A= } else if (form.ADD.value =3D=3D "Letter or Memo, Unpublished or = Personal") {=0A= form.ADD.value =3D "Letter or Memo";=0A= } else if (form.ADD.value =3D=3D "Letter, Published in a Collection") = {=0A= form.ADD.value =3D "Letter or Memo";=0A= } else if (form.ADD.value =3D=3D "Manuscript or Typescript") {=0A= form.ADD.value =3D "Manuscript, Essay, Notes, or Other Unpublished = Work";=0A= } else if (form.ADD.value =3D=3D "Essay or Working Paper, = Unpublished") {=0A= form.ADD.value =3D "Manuscript, Essay, Notes, or Other Unpublished = Work";=0A= }=0A= }=0A= }=0A= =0A= form.action =3D formaction;=0A= form.submit();=0A= }=0A= =0A= function addName(form, fieldname, fullfieldname, numnames) {=0A= =0A= var nameselector;=0A= =0A= if (testIsValidObject(form.elements[fullfieldname + "[]"])) {=0A= nameselector =3D form.elements[fullfieldname + "[]"];=0A= } else if (testIsValidObject(form.elements["req_" + fullfieldname + = "[]"])) {=0A= nameselector =3D form.elements["req_" + fullfieldname + "[]"];=0A= } else if (testIsValidObject(form.elements["printreq_" + fullfieldname = + "[]"])) {=0A= nameselector =3D form.elements["printreq_" + fullfieldname + "[]"];=0A= } else if (testIsValidObject(form.elements["onlinereq_" + fullfieldname = + "[]"])) {=0A= nameselector =3D form.elements["onlinereq_" + fullfieldname + "[]"];=0A= } else if (testIsValidObject(form.elements["emediareq_" + fullfieldname = + "[]"])) {=0A= nameselector =3D form.elements["emediareq_" + fullfieldname + "[]"];=0A= } else {=0A= return;=0A= }=0A= =0A= var lastname =3D form.elements[fieldname + "lastname"];=0A= var firstname =3D form.elements[fieldname + "firstname"];=0A= var middlename =3D form.elements[fieldname + "middlename"];=0A= =0A= var suffix =3D form.elements[fieldname + "suffix"];=0A= =0A= if (lastname.value =3D=3D "") {=0A= alert("The 'Last Name or Group/Corporation' field must be specified.");=0A= return;=0A= }=0A= =0A= var length =3D nameselector.length;=0A= =0A= if (length =3D=3D 1 && nameselector.options[0].value =3D=3D "")=0A= {=0A= length =3D 0;=0A= nameselector.options[0] =3D null;=0A= }=0A= =0A= if (numnames =3D=3D length) {=0A= if (numnames =3D=3D 1)=0A= alert("Only one name should be specified for this field.");=0A= else=0A= alert("Only " + numnames + " names are allowed in this list.");=0A= return;=0A= }=0A= =0A= if (lastname.value.indexOf("%") !=3D -1 || =0A= firstname.value.indexOf("%") !=3D -1 ||=0A= middlename.value.indexOf("%") !=3D -1 ||=0A= suffix.value.indexOf("%") !=3D -1) {=0A= =0A= alert("'%' characters are not allowed in this field.");=0A= return;=0A= }=0A= =0A= var name =3D trim(lastname.value) + "%" + trim(firstname.value) + "%" + = trim(middlename.value) + "%" + trim(suffix.value);=0A= var value =3D "";=0A= if (lastname.value !=3D "") {=0A= value +=3D trim(lastname.value);=0A= if (firstname.value !=3D "") {=0A= value +=3D ", " + trim(firstname.value);=0A= if (middlename.value !=3D "") {=0A= value +=3D " " + trim(middlename.value);=0A= }=0A= }=0A= if (suffix.value !=3D "") {=0A= value +=3D ", " + trim(suffix.value);=0A= }=0A= =0A= nameselector.options[length] =3D new Option(value, name);=0A= setAllOptions(nameselector, false);=0A= nameselector.options[length].selected =3D true;=0A= firstname.value =3D "";=0A= middlename.value =3D "";=0A= lastname.value =3D "";=0A= suffix.value =3D "";=0A= } =0A= =0A= var newlength =3D nameselector.length;=0A= if (newlength =3D=3D 0) {=0A= nameselector.options[0] =3D new Option("(No names have been added to = this list)", "");=0A= }=0A= }=0A= =0A= function removeName(form, fullfieldname) {=0A= var nameselector =3D form.elements[fullfieldname + "[]"];=0A= var length =3D nameselector.length;=0A= =0A= var starti =3D length-1;=0A= =0A= for (var i=3Dstarti; i >=3D 0; i--) {=0A= if (nameselector.options[i].selected)=0A= nameselector.options[i] =3D null;=0A= }=0A= =0A= var newlength =3D nameselector.length;=0A= =0A= if (newlength =3D=3D 0) {=0A= nameselector.options[0] =3D new Option("(No names have been added to = this list)", "");=0A= }=0A= }=0A= =0A= =0A= function isOneSelected(nameselector) {=0A= var length =3D nameselector.length;=0A= var numsel =3D 0;=0A= =0A= retval =3D -1;=0A= =0A= for (var i=3D0; i < length; i++) {=0A= if (nameselector.options[i].selected) {=0A= numsel++;=0A= retval =3D i;=0A= }=0A= }=0A= =0A= if (numsel !=3D 1) {=0A= alert("Please select only one name to move up or down in the list.");=0A= return -1;=0A= }=0A= =0A= return retval;=0A= }=0A= =0A= function setAllOptions(nameselector, bSet) {=0A= var length =3D nameselector.length;=0A= =0A= for (var i=3D0; i < length; i++)=0A= nameselector.options[i].selected =3D bSet;=0A= }=0A= =0A= function moveUp(form, fullfieldname) {=0A= var nameselector =3D form.elements[fullfieldname + "[]"];=0A= var index =3D isOneSelected(nameselector);=0A= =0A= if (index !=3D -1) {=0A= if (index =3D=3D 0) { return; }=0A= else {=0A= tmpText =3D nameselector.options[index-1].text;=0A= tmpVal =3D nameselector.options[index-1].value;=0A= =0A= nameselector.options[index-1].value =3D = nameselector.options[index].value;=0A= nameselector.options[index-1].text =3D = nameselector.options[index].text;=0A= nameselector.options[index].value =3D tmpVal;=0A= nameselector.options[index].text =3D tmpText;=0A= }=0A= =0A= setAllOptions(nameselector, false);=0A= nameselector.options[index-1].selected =3D true;=0A= }=0A= }=0A= =0A= function moveDown(form, fullfieldname) {=0A= var nameselector =3D form.elements[fullfieldname + "[]"];=0A= var index =3D isOneSelected(nameselector);=0A= var length =3D nameselector.length;=0A= =0A= if (index !=3D -1) {=0A= if (index =3D=3D length-1) { return; }=0A= else {=0A= tmpText =3D nameselector.options[index+1].text;=0A= tmpVal =3D nameselector.options[index+1].value;=0A= =0A= nameselector.options[index+1].value =3D = nameselector.options[index].value;=0A= nameselector.options[index+1].text =3D = nameselector.options[index].text;=0A= nameselector.options[index].value =3D tmpVal;=0A= nameselector.options[index].text =3D tmpText;=0A= }=0A= setAllOptions(nameselector, false);=0A= nameselector.options[index+1].selected =3D true;=0A= }=0A= }=0A= =0A= =0A= ------=_NextPart_000_0000_01C71DE2.604E3120--