<!-- Copyright� 2002-2009 Internetavenues.com, all rights reserved 
	
	//check the Select catagory field for errors. set the hidden field to error if error found	
	var xSelectProcInput;
	var xjPageName;
	var xSearchInput;
	var nn4 = (navigator.appName.indexOf("Netscape") > -1 && navigator.appVersion.indexOf("4") > -1) ? true : false
	
//function for forcing form submission
function checkEnter(e){
    var characterCode;
    xjPageName=document.SearchForm.FPageList.value;

	 if(e && e.which)
	    {
	    e = e;
	    characterCode = e.which;
	    }
	    else
	    {
	    e = event;
	    characterCode = e.keyCode;
	    }	 
	 if(characterCode == 13)
	    {
 	    xSearchInput=document.SearchForm.SearchText.value.replace(" ","_");
		window.location = xjPageName + "?type=Search&data=" + xSearchInput;
 	    return false
	    }
    return true
    }	
	
	
	
	function checkCat(Form1){
		document.Form1.FormError.value="None";
		xjPageName=document.Form1.FPageList.value;
		if (document.Form1.CategoryName.selectedIndex == 0){
			alert("You have NOT selected a Procedure");
			document.Form1.FormError.value="Errors";
			}
			else
			{
			xSelectProcInput=document.Form1.CategoryName[document.Form1.CategoryName.selectedIndex].value.replace(" ","_");
			window.location = xjPageName + "?type=Proc&data="  + xSelectProcInput;
			}
		}
		
	//check the search field for errors. set the hidden field to error if error found
	
	function checkSearch(SearchForm) {
		//document.Form2.FormError.value="None";
		xjPageName=document.SearchForm.FPageList.value;
		if (document.SearchForm.SearchText.value==""){
			alert("You did not enter a search word");
			document.SearchForm.FormError.value="Errors";
			}
			else
			{
			xSearchInput=document.SearchForm.SearchText.value.replace(" ","_");
			window.location = xjPageName + "?type=Search&data=" + xSearchInput;
			}
		}

	//check the Quick Find field for errors. set the hidden field to error if error found
	function checkQuickFind(Form1) {
		document.Form1.FormError.value="None"
		xjPageName=document.Form1.FPageList.value
		
		if (document.Form1.QuickFindNum.value=="No Record"){
			document.Form1.QuickFindNum.value=""
			}
		if (document.Form1.QuickFindNum.value==""){

			alert("You did not enter a Quick Find Number")
			document.Form1.FormError.value="Errors"
			}
			else
			{
			window.location = xjPageName + "?recID="+document.Form1.QuickFindNum.value+"&Type=QukFnd"
			}
		}	


	//if there are errors return a false to go to next screen
	function checkErrors() {
		if (document.Form1.FormError.value=="Errors")
		    {
			return false
			}
			else
			{
			return true
			}
		}
		
	//sub-function of Image preload
	function newImage2(arg) {
			if (document.images) {
				rslt = new Image();
				rslt.src = arg;
				return rslt;
				}
			}

	//Roll over image swap
	function changeImages2() {
			preloadFlag2 = true;
			if (document.images && (preloadFlag2 == true)) {
				for (var i2=0; i2<changeImages2.arguments.length; i2+=2) {
					document[changeImages2.arguments[i2]].src = changeImages2.arguments[i2+1];
				}
			}
		}

	//Image preload for roll over
	var preloadFlag2 = false;
	function preloadImages2() {
			if (document.images) {
				Go_01_over = newImage("Images//go_button_over.jpg");
				preloadFlag2 = true;
			}
		}
		
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}	