 /**  *   *  */function jumpMenu(targ, selObj, restore){  eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");    if (restore) {      selObj.selectedIndex = 0;  }}//jumpMenu /**  * Find the DOM  * @param n  * @param d document  */function findObj(n, d) {   var p;  var i;  var x;      if(!d) d = document;    if((p = n.indexOf("?")) > 0 && parent.frames.length) {    d = parent.frames[n.substring(p + 1)].document;     n = n.substring(0, p);  }//if    if(!(x=d[n]) && d.all) x=d.all[n];    for (i=0; ! x && i < d.forms.length; i++) {      x=d.forms[i][n];  }    for(i=0; !x && d.layers && i < d.layers.length; i++) {      x=findObj(n, d.layers[i].document);  }    if(!x && d.getElementById) x = d.getElementById(n);    return x;}//findObj /**  * Launch the link  *  */function jumpMenuGo(selName, targ, restore){  var selObj = findObj(selName);    if (selObj) jumpMenu(targ, selObj, restore);}//jumpMenuGo //create a marker whose info window displays the given numberfunction createMarker(point){   	var marker = new GMarker(point);		    	   	var html = "<h3>Earl Gregg Swem Library</h3><p>(757) 221-3072<br/>Landrum Drive<br/>Williamsburg, VA 23185</p>";					html +=  "<p><a href='http://maps.google.com/maps?q=landrum+drive,+williamsburg,+VA+(Earl+Gregg+Swem+Library)'>Get directions from Google</a></p>";					   	GEvent.addListener(marker, "click", function(){    		marker.openInfoWindowHtml(html);   	});		    	   	return marker;}//createMarker/** * Fix Netscape page reload bug for those who refuse to upgrade their browser */function reloadPage(init) {  //reloads the window if Nav4 resized	if (init == true) with (navigator) {		if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {			document.pgW = innerWidth; 			document.pgH = innerHeight; 			onresize = reloadPage; 		  }	  }	  else if (innerWidth != document.pgW || innerHeight != document.MM_pgH) {		  location.reload();	}}//reloadPagereloadPage(true);//confirm deletefunction confirmDelete1(title,url) {			var yes = confirm("Are you sure you want to delete your link to " + title + "?");			if (yes)			window.location=url		}		function linkSelected(id) {identity=document.getElementById(id);if (identity.className=='selected') {	identity.className='notselected';}else { identity.className='selected'; }}function navigateDatabases(afterExecURL) {		document.saveselection.redirect.value = afterExecURL;		document.saveselection.submit();	}	function checkUncheckAll(theElement) {	linkSelected('selectall');     var theForm = theElement.form, z = 0;	 for(z=0; z<theForm.length;z++){     	 if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){	  		theForm[z].checked = theElement.checked;	        		}      	 	if(theForm[z].name == 'SwemDatabaseUUID' && theElement.checked != '0') {	 		identity=document.getElementById(theForm[z].value);	 		identity.className = 'selected';				 }		if (theForm[z].name == 'SwemDatabaseUUID' && theElement.checked != '1'){	 		identity=document.getElementById(theForm[z].value);	 		identity=document.getElementById(theForm[z].value);	 		identity.className = 'notselected';				 }	       }    }		function showElement(e, helpId, xOffset, yOffset){    var contextualHelp = document.getElementById(helpId);    contextualHelp.style.top = ((e.clientY + document.documentElement.scrollTop + yOffset) + 'px');    contextualHelp.style.left = ((e.clientX + xOffset) + 'px');    contextualHelp.style.visibility = 'visible';}//showElementfunction hideElement(helpId){    var contextualHelp = document.getElementById(helpId);    contextualHelp.style.visibility = 'hidden';}//hideElement