// JavaScript Document for common routines

function MM_jumpMenu(targ,selObj,restore){ // Jump menu v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function clearfield(){ //clears a search field if it contains an elipsis, e.g. "Enter key waord..."
if (document.searchform.search.value.indexOf("...") > 0)
	document.searchform.search.value = "";
}
function checksearch(f){ //checks the length of a search word or phrase
var searchoption;
if (searchoption = document.searchform.searchtype.value == "advanced") return true;
if (document.searchform.search.value.indexOf("...") > 0 || document.searchform.search.value == "")
	{
	alert("You must enter a search word or phrase");
	return false;
	}
if (document.searchform.search.value.length < 3)
	{
	alert("Your search word must be 3 or more characters");
	return false;
	}

return true;
}

