toolbox = new Image (110,18); toolbox.src = "/images/scirc/b_toolbox.gif" toolboxh = new Image (110,18); toolboxh.src = "/images/scirc/b_toolboxh.gif" databases = new Image (110,18); databases.src = "/images/scirc/b_databases.gif" databasesh = new Image (110,18); databasesh.src = "/images/scirc/b_databasesh.gif" help = new Image (110,18); help.src = "/images/scirc/b_help.gif" helph = new Image (110,18); helph.src = "/images/scirc/b_helph.gif" research = new Image (110,18); research.src = "/images/scirc/b_research.gif" researchh = new Image (110,18); researchh.src = "/images/scirc/b_researchh.gif" dict = new Image (110,18); dict.src = "/images/scirc/b_dict.gif" dicth = new Image (110,18); dicth.src = "/images/scirc/b_dicth.gif" sources = new Image (110,18); sources.src = "/images/scirc/b_sources.gif" sourcesh = new Image (110,18); sourcesh.src = "/images/scirc/b_sourcesh.gif" timeline = new Image (110,18); timeline.src = "/images/scirc/b_timeline.gif" timelineh = new Image (110,18); timelineh.src = "/images/scirc/b_timelineh.gif" marklist = new Image (110,18); marklist.src = "/images/scirc/b_marklist.gif" marklisth = new Image (110,18); marklisth.src = "/images/scirc/b_marklisth.gif" marklistfull = new Image (110,18); marklistfull.src = "/images/scirc/b_marklist_full.gif" marklistfullh = new Image (110,18); marklistfullh.src = "/images/scirc/b_marklist_fullh.gif" backlib = new Image (110,18); backlib.src = "/images/scirc/b_backlib.gif" backlibh = new Image (110,18); backlibh.src = "/images/scirc/b_backlibh.gif" search = new Image (110,18); search.src = "/images/scirc/b_search_top.gif" searchh = new Image (110,18); searchh.src = "/images/scirc/b_search_toph.gif" search2 = new Image (110,18); search2.src = "/images/scirc/b_search.gif" search2h = new Image (110,18); search2h.src = "/images/scirc/b_searchh.gif" clear = new Image (110,18); clear.src = "/images/scirc/b_clear.gif" clearh = new Image (110,18); clearh.src = "/images/scirc/b_clearh.gif" clear2 = new Image (110,18); clear2.src = "/images/scirc/b_clear.gif" clear2h = new Image (110,18); clear2h.src = "/images/scirc/b_clearh.gif" clear2a = new Image (110,18); clear2a.src = "/images/scirc/b_clear.gif" clear2ah = new Image (110,18); clear2ah.src = "/images/scirc/b_clearh.gif" viewHistory = new Image (110,18); viewHistory.src = "/images/scirc/b_viewhist.gif" viewHistoryh = new Image (110,18); viewHistoryh.src = "/images/scirc/b_viewhisth.gif" clearHistory = new Image (110,18); clearHistory.src = "/images/scirc/b_clearhist.gif" clearHistoryh = new Image (110,18); clearHistoryh.src = "/images/scirc/b_clearhisth.gif" reftab = new Image (110,18); reftab.src = "/images/scirc/t_reference_off.gif" reftabh = new Image (110,18); reftabh.src = "/images/scirc/t_reference_over.gif" magstab = new Image (110,18); magstab.src = "/images/scirc/t_mags_off.gif" magstabh = new Image (110,18); magstabh.src = "/images/scirc/t_mags_over.gif" journalstab = new Image (110,18); journalstab.src = "/images/scirc/t_journals_off.gif" journalstabh = new Image (110,18); journalstabh.src = "/images/scirc/t_journals_over.gif" newstab = new Image (110,18); newstab.src = "/images/scirc/t_news_off.gif" newstabh = new Image (110,18); newstabh.src = "/images/scirc/t_news_over.gif" primdocstab = new Image (110,18); primdocstab.src = "/images/scirc/t_primdocs_off.gif" primdocstabh = new Image (110,18); primdocstabh.src = "/images/scirc/t_primdocs_over.gif" multimediatab = new Image (110,18); multimediatab.src = "/images/scirc/t_multimedia_off.gif" multimediatabh = new Image (110,18); multimediatabh.src = "/images/scirc/t_multimedia_over.gif" websitestab = new Image (110,18); websitestab.src = "/images/scirc/t_websites_off.gif" websitestabh = new Image (110,18); websitestabh.src = "/images/scirc/t_websites_over.gif" email = new Image (110,18); email.src = "/images/scirc/i_email.gif" emailh = new Image (110,18); emailh.src = "/images/scirc/i_email.gif" prrint = new Image (110,18); prrint.src = "/images/scirc/i_print.gif" prrinth = new Image (110,18); prrinth.src = "/images/scirc/i_print.gif" send = new Image (110,18); send.src = "/images/scirc/b_send.gif" sendh = new Image (110,18); sendh.src = "/images/scirc/b_sendh.gif" biosonly = new Image(); biosonly.src = "/images/scirc/b_biosonly.gif" biosonlyh = new Image(); biosonlyh.src = "/images/scirc/b_biosonlyh.gif" expandresults = new Image(); expandresults.src = "/images/scirc/b_expandresults.gif" expandresultsh = new Image(); expandresultsh.src = "/images/scirc/b_expandresultsh.gif" function img_act(tag) { document [tag].src = eval(tag + "h.src"); } function img_inact(tag) { document [tag].src = eval(tag + ".src"); } function isEmpty(value) { return (value.length <= 0); } function validateBasicSearch() { if ( isEmpty(document.basicSearch.bi.value) ) { alert("Please enter a search type."); document.basicSearch.bi.focus(); return false; } if ( isEmpty(document.basicSearch.bt.value) ) { alert("Please enter a search term(s)."); document.basicSearch.bt.focus(); return false; } if ( document.basicSearch.bt.value.indexOf("*") > 0 || document.basicSearch.bt.value.indexOf("?") > 0 || document.basicSearch.bt.value.indexOf("!") > 0 ) { alert("Truncation Characters (*, ?, !) are not allowed in Basic Search. Use Advanced Search instead."); document.basicSearch.bt.focus(); return false; } return true; } function submitBasicSearch() { if (validateBasicSearch()) document.basicSearch.submit(); } function popupWindow(loc) { xPosition=0; yPosition=0; width = 640; height = 500; if ( parseInt(navigator.appVersion) >= 4 ) { xPosition = (screen.width - width) / 2; yPosition = (screen.height - height) / 2; } args = "location=0,menubar=0,resizable=0," + "scrollbars= 1,status=0,titlebar=0,toolbar=0,hotkeys=0," + "width=" + width + "," + "height=" + height + " ," + "screenx=" + xPosition + "," + "screeny=" + yPosition + " ," + "left=" + xPosition + "," + "top=" + yPosition; window.open(loc, "occupationList", args); } function selectOccupation( occupation ) { window.opener.document.personSearch.po.value="\"" + occupation + "\""; window.opener.document.personSearch.poDisabled.value="\"" + occupation + "\""; window.opener.document.personSearch.pn.focus(); self.close(); } function clearOccupation() { document.personSearch.po.value=""; document.personSearch.poDisabled.value=""; document.personSearch.pn.focus(); return; } function googleImageLink(searchTerm, baseUrl) { var src = baseUrl + "&m=" + searchTerm; if ( document.implementation && document.implementation.createDocument) { var xmlDoc = document.implementation.createDocument("","",null); xmlDoc.load(src); } else if (window.ActiveXObject) { var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.load(src); } xPosition=0; yPosition=0; width = 640; height = 500; if ( parseInt(navigator.appVersion) >= 4 ) { xPosition = (screen.width - width) / 2; yPosition = (screen.height - height) / 2; } url = "http://images.google.com/images?safe=active&q=" + searchTerm; args = "location=0,menubar=0,resizable=1," + "scrollbars= 1,status=0,titlebar=0,toolbar=0,hotkeys=0," + "width=" + width + "," + "height=" + height + " ," + "screenx=" + xPosition + "," + "screeny=" + yPosition + " ," + "left=" + xPosition + "," + "top=" + yPosition; window.open(url, "googleImageSearch", args); return; } function unitedStreamingLink(searchTerm, baseUrl) { var src = baseUrl + "&m=" + searchTerm; if ( document.implementation && document.implementation.createDocument) { var xmlDoc = document.implementation.createDocument("","",null); xmlDoc.load(src); } else if (window.ActiveXObject) { var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.load(src); } xPosition=0; yPosition=0; width = 640; height = 500; if ( parseInt(navigator.appVersion) >= 4 ) { xPosition = (screen.width - width) / 2; yPosition = (screen.height - height) / 2; } url = "http://search.discoveryeducation.com/index.cfm?blnSearchInit=true&Ntk=all&Nr=&N=0&Nty=1&Ntt=" + searchTerm; remote = window.open("","galeChildWindow","alwaysRaised=yes,width=720,height=520,screenX=50,screenY=50,top=50,left=50,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,status=no"); remote.location.href=url; if (remote.opener == null) { remote.opener = window; } else { remote.focus(); } return; } function markAllDocuments() { alert("This feature is not yet implemented"); } function validateAdvancedSearch() { if (isEmpty(document.advancedSearch.at1.value) && isEmpty(document.advancedSearch.at2.value) && isEmpty(document.advancedSearch.at3.value) && isEmpty(document.advancedSearch.afy.value) && isEmpty(document.advancedSearch.afm.value) && isEmpty(document.advancedSearch.aty.value) && isEmpty(document.advancedSearch.atm.value) && isEmpty(document.advancedSearch.ad.value) ) { alert("You must enter search criteria."); document.advancedSearch.at1.focus(); return false; } else { return true; } } function clearAdvancedSearchForm() { document.advancedSearch.at1.value=''; document.advancedSearch.at2.value=''; document.advancedSearch.at3.value=''; document.advancedSearch.ai1.options[0].selected=true; // Title document.advancedSearch.ai2.options[1].selected=true; // Source document.advancedSearch.ai3.options[6].selected=true; // Doc Number document.advancedSearch.ao1.options[0].selected=true; document.advancedSearch.ao2.options[0].selected=true; document.advancedSearch.afm.options[0].selected=true; document.advancedSearch.afd.options[0].selected=true; document.advancedSearch.afy.options[0].selected=true; document.advancedSearch.atm.options[0].selected=true; document.advancedSearch.atd.options[0].selected=true; document.advancedSearch.aty.options[0].selected=true; document.advancedSearch.ad.options[0].selected=true; document.advancedSearch.alf.checked=false; document.advancedSearch.ali.checked=false; document.advancedSearch.alp.checked=false; document.advancedSearch.n.options[0].selected=true; document.advancedSearch.at1.focus(); } function validatePublicationSearch() { var title = document.publicationSearch.ut.value; title = title.replace(/\s*$/, "").toLowerCase(); if(isEmpty(title)) { alert("Please enter a search term(s)."); } else if(document.publicationSearch.uto[1].checked && (title == "a" || title == "an" || title == "the")) { alert("Leading articles (a, an, the) are not allowed in Publication Search using the 'Title contains' option. Use a different search term or select the 'Title starts with' option instead."); } else { return true; } document.publicationSearch.ut.focus(); return false; } function submitPublicationSearch() { if (validatePublicationSearch()) document.publicationSearch.submit(); }