// Detect if browser is Netscape 3 + or IE 4 +
	bName = navigator.appName;
	bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";

    if (br== "n3") { 				
	
	

		
		home_bottom_01_off	 			= new Image();
		home_bottom_01_off.src			= "http://hilitemfg.net/services/images/home/home_bottom_01_off.gif";
		home_bottom_01_on     			= new Image();
		home_bottom_01_on.src 			= "http://hilitemfg.net/services/images/home/home_bottom_01_on.gif";	
		
		home_bottom_02_off	 			= new Image();
		home_bottom_02_off.src			= "http://hilitemfg.net/services/images/home/home_bottom_02_off.gif";
		home_bottom_02_on    	 		= new Image();
		home_bottom_02_on.src 			= "http://hilitemfg.net/services/images/home/home_bottom_02_on.gif";	
		
		home_bottom_03_off	 			= new Image();
		home_bottom_03_off.src			= "http://hilitemfg.net/services/images/home/home_bottom_03_off.gif";
		home_bottom_03_on     			= new Image();
		home_bottom_03_on.src 			= "http://hilitemfg.net/services/images/home/home_bottom_03_on.gif";	
		
		home_01_off	 			= new Image();
		home_01_off.src			= "http://hilitemfg.net/services/images/home/home_01_off.gif";
		home_01_on     			= new Image();
		home_01_on.src 			= "http://hilitemfg.net/services/images/home/home_01_on.gif";	
		
		home_02_off	 			= new Image();
		home_02_off.src			= "http://hilitemfg.net/services/images/home/home_02_off.gif";
		home_02_on    	 		= new Image();
		home_02_on.src 			= "http://hilitemfg.net/services/images/home/home_02_on.gif";	
		
		home_03_off	 			= new Image();
		home_03_off.src			= "http://hilitemfg.net/services/images/home/home_03_off.gif";
		home_03_on     			= new Image();
		home_03_on.src 			= "http://hilitemfg.net/services/images/home/home_03_on.gif";	
		
		home_04_off	 			= new Image();
		home_04_off.src			= "http://hilitemfg.net/services/images/home/home_04_off.gif";
		home_04_on     			= new Image();
		home_04_on.src 			= "http://hilitemfg.net/services/images/home/home_04_on.gif";	
		
		home_05_off	 			= new Image();
		home_05_off.src			= "http://hilitemfg.net/services/images/home/home_05_off.gif";
		home_05_on     			= new Image();
		home_05_on.src 			= "http://hilitemfg.net/services/images/home/home_05_on.gif";	

		home_06_off	 			= new Image();
		home_06_off.src			= "http://hilitemfg.net/services/images/home/home_06_off.gif";
		home_06_on     			= new Image();
		home_06_on.src 			= "http://hilitemfg.net/services/images/home/home_06_on.gif";

		home_07_off	 			= new Image();
		home_07_off.src			= "http://hilitemfg.net/services/images/home/home_07_off.gif";
		home_07_on     			= new Image();
		home_07_on.src 			= "http://hilitemfg.net/services/images/home/home_07_on.gif";

		home_08_off	 			= new Image();
		home_08_off.src			= "http://hilitemfg.net/services/images/home/home_08_off.gif";
		home_08_on     			= new Image();
		home_08_on.src 			= "http://hilitemfg.net/services/images/home/home_08_on.gif";


		
	}
		
	function imgOn(imgName){
		if (br == "n3"){
    	document[imgName].src = eval(imgName + "_on.src");
		}
	}
	function imgOff(imgName) {
    	if (br == "n3") {
		document[imgName].src = eval(imgName + "_off.src");
		}
	}	
//---------------------------------------------------------
// generic rollover - Ann Zumwinkle added
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,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(!(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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//---------------------------------------------------------
// check catalog search feature
function validateSearch(form) {
	if (form.keyword.value == "" || form.keyword.value == null) 
	{
		alert('Please enter a keyword or phrase to search.');
		return false;
	} 
if (form.keyword.value.length < 3)
   {
    alert("Please enter at least 3 characters in the \"Search\" field.");
    form.keyword.focus();
    return (false);
   }
	return true;
}

//------------------------------------------------------------
// Open colors window
function openWin(URL,width,height) {
  win_handle = window.open(URL,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable,width="+width+",height="+height+",top=20,left=20");
   win_handle.focus(); 
}
 
         function goback()
         {
              window.history.back()
         }



function openWinPrint(content){
	var newwindow;
	var newdocument;
  newwindow = window.open("","win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable,width=550,height=400,top=20,left=20");
  newdocument=newwindow.document;
  newdocument.write(content);
  return false;
}


//----------------------------------------------------
// contact us form validation
function isEmail(elm) {
    if (elm.value.indexOf("@") + "" != "-1" &&
        elm.value.indexOf(".") + "" != "-1" &&
        elm.value != "") 
    return true;
    else return false;
}
function isFilled(elm) {
    if (elm.value == "" ||
        elm.value == null) 
    return false;
    else return true;
}

function sendForm(form) {
    if (isFilled(form.Name) == false) {
    alert("Please enter your name.");
    form.Name.focus();
    return false;
    }
    if (isFilled(form.Business) == false) {
    alert("Please enter your Business.");
    form.Business.focus();
    return false;
    }
	if (isEmail(form.submit_by) == false) { 
    alert("Please enter a valid email address.");
    form.submit_by.focus();
    return false;
    }
    if (isFilled(form.Address) == false) {
    alert("Please enter your Address.");
    form.Address.focus();
    return false;
    }
    if (isFilled(form.City) == false) {
    alert("Please enter your City.");
    form.City.focus();
    return false;
    }
    if (isFilled(form.State) == false) {
    alert("Please enter your State.");
    form.State.focus();
    return false;
    }
    if (isFilled(form.Zip) == false) {
    alert("Please enter your Zip.");
    form.Zip.focus();
    return false;
    }
    if (isFilled(form.Country) == false) {
    alert("Please enter your Country.");
    form.Country.focus();
    return false;
    }
    if (isFilled(form.Phone) == false) {
    alert("Please enter your Phone.");
    form.Phone.focus();
    return false;
    }
    if (isFilled(form.Fax) == false) {
    alert("Please enter your Fax.");
    form.Fax.focus();
    return false;
    }
    if (isFilled(form.Comments) == false) {
    alert("Please enter your Message.");
    form.Comments.focus();
    return false;
    }

	return confirm("Is all the information correct?\n Hit OK to submit or CANCEL to make changes.");
}
//----------------------------------------------------
// 