	// This phrase is also used in searchnav.asp  
	var defaultTxtkeys1 = "enter keyword, phrase, or photo id#"

	function SetSearchNavChecks()
		{
		var i = document.formsearch.pixperpage.selectedIndex
		var v = document.formsearch.pixperpage.options[i].value
		document.formnav.pixperpage.value = v		
	
		if (document.formsearch.wwwflagrf.checked) 
			document.formnav.wwwflagrf.value = "on"
		else
			document.formnav.wwwflagrf.value = ""
			
		if (document.formsearch.wwwflagrm.checked) 
			document.formnav.wwwflagrm.value = "on"
		else
			document.formnav.wwwflagrm.value = ""

		if (document.formsearch.wwwflagom.checked) 
			{
			document.formnav.chkmodrel.value = "TRUE"
			document.formsearch.chkmodrel.value = "TRUE"
			}	
		else
			{
			document.formnav.chkmodrel.value = ""
			document.formsearch.chkmodrel.value = ""
			}
		}


	function FormSearchSubmit()
		{
		var v
		v = document.formsearch.txtkeys1.value
		if (v != "" && v != defaultTxtkeys1)
			document.formsearch.submit()
		}

	function ShowLayerSearchNav(ID)
		{
		var e;
		
		if (document.getElementById)
			{
			e = document.getElementById(ID);
			e.style.visibility = "visible"; 
			}
		else if (document.all)
			{
			var e = document.all["ID"];
			e.style.visibility = "visible"; 
			}
		else if (document.layers)
			{
			e = document.layers["ID"];
			e.style.visibility = "show";
			}
		}

	function HideLayerSearchNav(ID)
		{
		var e;
		if (document.getElementById)
			{
			e = document.getElementById(ID);
			e.style.visibility = "hidden"; 
			}
		else if (document.all)
			{
			var e = document.all["ID"];
			e.style.visibility = "hidden"; 
			}
		else if (document.layers)
			{
			e = document.layers["ID"];
			e.style.visibility = "hide";
			}
		}
