// JavaScript Document<!--function MM_popupMsg(msg) { //v1.0  alert(msg);}function popup(url, name, width, height) {	settings="scrollbars=yes,width="+width+",height="+height;	MyNewWindow=window.open(url,name,settings);}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_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_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];}}//--><!--function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);//-->// from battery_searchdotphp<!--function passVar(){	document.BatterySearch.action.value="display";	document.BatterySearch.submit();}function goTo(){	box = document.forms[0].product;	destination = box.options[box.selectedIndex].value;	if (destination != "a"){		var sendMe = confirm("NP, Stationary and Motive Power batteries are no longer supplied by Yuasa Battery Inc., please contact EnerSys Inc. Clicking OK, will redirect you to EnerSys Inc. Please update your links. Thank You");		if (sendMe) {			self.location.href="http://www.enersysstationary.com";		}		}	}function go(){	box = document.forms[0].product;	destination = box.options[box.selectedIndex].value;	if (destination) location.href = destination;}//-->// from signupdotphp<!--function validate() {  var frm1 = document.signup;   if(frm1.security_code.value.length == 0){    	alert("Please fill out Security Code.");        frm1.security_code.focus();         return true;     }     if(frm1.security_code.value.length != 8){         alert("Please use 8 characters for the Security Code.");         frm1.security_code.focus();         return true;      }      if(frm1.dealershipname.value.length == 0){		alert("Please enter your Name.");        frm1.dealershipname.focus();        return true;		}	if(frm1.address.value.length == 0){		alert("Please enter your Address.");        frm1.address.focus();        return true;		}	if(frm1.address.value.indexOf("http")!=-1){		alert("Illegal characters found; please re-enter your Address.");        frm1.address.focus();        return true;		}	if(frm1.city.value.length == 0){		alert("Please enter your City.");        frm1.city.focus();        return true;		}	if(frm1.state.options[frm1.state.selectedIndex].value == ""){		alert("Please enter your State.");		 frm1.state.focus();		return true;		}	if(frm1.zipcode.value.length == 0){		alert("Please enter your Postal Code.");        frm1.zipcode.focus();        return true;		}	if(frm1.email.value.length == 0){		alert("Please enter your Email.");        frm1.email.focus();        return true;		}	if (echeck(frm1.email.value)==false){		frm1.email.focus();		return true;	}  frm1.submit();}function echeck(str) {		var at="@"		var dot="."		var lat=str.indexOf(at)		var lstr=str.length		var ldot=str.indexOf(dot)		if (str.indexOf(at)==-1){		   alert("Invalid E-mail ID")		   return false		}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){		   alert("Invalid E-mail ID")		   return false		}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		    alert("Invalid E-mail ID")		    return false		}		 if (str.indexOf(at,(lat+1))!=-1){		    alert("Invalid E-mail ID")		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){		    alert("Invalid E-mail ID")		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1){		    alert("Invalid E-mail ID")		    return false		 }				 if (str.indexOf(" ")!=-1){		    alert("Invalid E-mail ID")		    return false		 } 		 return true						}//-->// from vehiclesearchdotphp<!--function passVar(){	document.VehicleSearch.action.value="display";	document.VehicleSearch.submit();}//-->

// from battery_search<!--function passVarBS(){	document.BatterySearch.action.value="display";	document.BatterySearch.submit();}//-->