	var AgntUsr=navigator.userAgent.toLowerCase();
	var AppVer=navigator.appVersion.toLowerCase();
	var DomYes=document.getElementById?1:0;
	var NavYes=AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1?1:0;
	var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0;
	var Opr=AgntUsr.indexOf('opera')!=-1?1:0;
function changeVar(nameOfVar)
{
	switch (nameOfVar)
	{
		case "dict_he_true" :
			if (dict_he==true)
			{
				dict_he=false;
				document.Image4.src="/images/1_over.gif";
			}
			else
			{
				dict_he=true;
				copy=false;
				dict_hh=false;
				document.Image4.src="/images/1_on.gif";
				if (document.Image3)
					document.Image3.src="/images/2_off.gif";
			}
			break;
		case "copy_true" :
			dict_he=false;
			copy=true;
			dict_hh=false;
			if (!NavYes) // copy text to clipboard, work only in IE
				copyTxt();
			break;
		case "dict_hh_true" :
			if (dict_hh==true)
			{

				dict_hh=false;
				if (document.Image3)
					document.Image3.src="/images/2_over.gif";
			}
			else
			{
				dict_he=false;
				copy=false;
				dict_hh=true;
				if (document.Image3)
					document.Image3.src="/images/2_on.gif";
				document.Image4.src="/images/1_off.gif";
			}
			break;
	}
}
if (NavYes)
document.write('<link rel="stylesheet" href="rubberStyleNS.css" type="text/css" alt="style">');
else
document.write('<link rel="stylesheet" href="rubberStyle.css" type="text/css" alt="style">');

		imagename='';
		function enlrge(imgnme) {
			lrgewin=window.open("about:blank","","height=200,width=200")
			imagename=imgnme;
			setTimeout('update()',500)
		}
	function win(fileName)
			{
			myFloater=window.open('','myWindow','scrollbars=auto,status=no,width=400,height=300')
			myFloater.location.href=fileName;
			}
		function update() {
		
		doc=lrgewin.document;
		doc.open('text/html');
		doc.write('<HTML><HEAD><TITLE>Enlarged Image<\/TITLE><\/HEAD><BODY bgcolor="white" onLoad="if  (self.resizeTo)self.resizeTo((document.images[0].width+10),(document.images[0].height+80))" topmargin="4" leftmargin="0" rightmargin="0" bottommargin="0"><table width=""' + document.images[0].width + '" border="0" cellspacing="0" cellpadding="0"><tr><td>');
		doc.write('<IMG SRC="' + imagename + '"><\/td><\/tr><tr><td><form name="viewn"><input type="image" src="img/close.gif" align="right" value="Close Window" onClick="self.close()"><\/td><\/tr><\/table>');
		doc.write('<\/form><\/BODY><\/HTML>');
		doc.close();
		}
function calcLbsSq(){
var depth=document.frmCalc.depth.options(document.frmCalc.depth.selectedIndex).value;
//alert (depth);
switch(depth){
case "1":
document.frmCalc.LbsSq.value=2.33;
break
case "1.5":
document.frmCalc.LbsSq.value=3.50;
break
case "2":
document.frmCalc.LbsSq.value=4.66;
break
case "3":
document.frmCalc.LbsSq.value=7;
break
case "4":
document.frmCalc.LbsSq.value=9.33;
break
case "5":
document.frmCalc.LbsSq.value=11.67;
break
case "6":
document.frmCalc.LbsSq.value=14;
break
default :
;
}
}
function CalcTons(){
document.frmCalc.Lbs.value=(document.frmCalc.Length.value * document.frmCalc.Width.value * document.frmCalc.LbsSq.value)
document.frmCalc.Tons.value=(document.frmCalc.Length.value * document.frmCalc.Width.value * document.frmCalc.LbsSq.value)/2000
}
function Form1_onsubmit(theForm) {
   if (theForm.contact.value == "") {
      alert("Please enter a contact.");
      return (false);   // This cancels the submission
   }
         if (theForm.city.value == "") {
      alert("Please enter your city.");
      return (false);   // This cancels the submission
   }
         if (theForm.state.value == "") {
      alert("Please enter your state.");
      return (false);   // This cancels the submission
   }
         if (theForm.zip.value == "") {
      alert("Please enter your zip code.");
      return (false);   // This cancels the submission
   }
      if (theForm.phone.value == "") {
      alert("Please enter your phone number.");
      return (false);   // This cancels the submission
   }
          else if (theForm.email.value.indexOf("@" && ".") == -1){ 
       alert("Please check that your email address is valid."); 
       return (false);
   } 
         if (theForm.area.value == "") {
      alert("Please enter the area you would like to cover.");
      return (false);   // This cancels the submission
   }
 

  
   else 
      ; // Information automatically sent to server
   return (true);
}


