function setFormFocus(e) { e.focus(); e.select(); }; function moveup(){ if (window.movedownvar) clearTimeout(movedownvar) if (iens6&&parseInt(crossobj.style.top)<=0) crossobj.style.top=parseInt(crossobj.style.top)+speed+"px" else if (ns4&&crossobj.top<=0) crossobj.top+=speed moveupvar=setTimeout("moveup()",20) }; function stopscroll(){ if (window.moveupvar) clearTimeout(moveupvar) if (window.movedownvar) clearTimeout(movedownvar) }; function movetop(){ stopscroll() if (iens6) crossobj.style.top=0+"px" else if (ns4) crossobj.top=0 }; function getcontent_height(){ if (iens6) contentheight=crossobj.offsetHeight else if (ns4) document.nscontainer.document.nscontent.visibility="show" }; function movedown(){ if (window.moveupvar) clearTimeout(moveupvar) if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100)) crossobj.style.top=parseInt(crossobj.style.top)-speed+"px" else if (ns4&&crossobj.top>=(contentheight*(-1)+100)) crossobj.top-=speed movedownvar=setTimeout("movedown()",20) }; function doSelName(f, v){ if ( v ){ var a = new Array(); a[a.length] = [f.SearchFormula, 'You must enter something to search for!']; if ( validateRequiredFields( f, a ) ){ return true; }else{ return false; } } else { return true; } }; function selName(f) { var searchString = ""; var computedString = "" ; computedString = f.ComputedQuery.value ; searchString = f.SearchFormula.value ; window.location = ("/oswalds2.nsf/SearchResults!SearchView&Query=" + searchString + computedString); } ; function searchWithinPage(f) { var searchString = ""; var theIndex = 0; // searchString = f.WithinPage.value ; searchString = window.prompt('Enter the text you want to highlight', '-search for-'); theIndex = window.location.pathname.indexOf('!') ; if (theIndex == -1) { window.location = (window.location.pathname + "!Open&Highlight=0," + searchString); } else { window.location = (window.location.pathname.substring(0, theIndex) + "!Open&Highlight=0," + searchString); } } ; function goBack() { var DBPath = document.forms[0].DBPath.value ; var searchString = document.forms[0].query.value ; var thehits = document.forms[0].Hits.value ; var totalhits = document.forms[0].totalhits.value ; var thestart = document.forms[0].start.value ; var thecount = document.forms[0].count.value ; if (parseInt(thestart) - parseInt(thecount) + 1 < 1 ) { startat = 1 ; } else { startat = parseInt(thestart) - parseInt(thecount) } window.location = ("/" + DBPath + "/SearchResults?SearchView&Query=" + searchString + "&Start=" + startat + "&Count=" + thecount + "&SearchOrder=1" + "&SearchWV=TRUE&SearchFuzzy=TRUE"); }; function goForward() { var computedString = document.forms[0].ComputedQuery.value ; var searchString = document.forms[0].query.value ; var thehits = document.forms[0].Hits.value ; var totalhits = document.forms[0].totalhits.value ; var thestart = document.forms[0].start.value ; var thecount = document.forms[0].count.value ; if (parseInt(thestart) + parseInt(thehits) > parseInt(totalhits) ) { startat = thestart ; } else { startat = parseInt(thestart) + parseInt(thecount) } window.location = ("/oswalds2.nsf/SearchResults?SearchView&Query=" + searchString + "&Start=" + startat + "&Count=" + thecount + "&SearchOrder=1" + "&SearchWV=TRUE&SearchFuzzy=TRUE"); }; function checkSubmitted(f) { if (isSubmitted =="NO") { isSubmitted = "YES"; f.submit(); } else { showMessage("!alert", "You have already submitted this document, just waiting for response from the server. Please click 'OK' to continue.") } } ; function doSearch(f) { computedString = f.SubmitComputedQuery.value ; searchString = f.SearchFormula.value ; if (searchString == "" ) { alert("You have to enter something to search for!") ; return false; } else { window.location = ("/oswalds2.nsf/SearchResults!SearchView&Query=" + searchString + computedString); } } ;