﻿// rollovers :: 1 of 2	if (document.images) {			nav_ser_off = new Image		nav_ser_hov = new Image		nav_ser_on = new Image		nav_pro_off = new Image		nav_pro_hov = new Image		nav_pro_on = new Image		nav_equip_off = new Image		nav_equip_hov = new Image		nav_equip_on = new Image		nav_contact_off = new Image		nav_contact_hov = new Image		nav_contact_on = new Image		nav_ser_off.src = "images/nav_ser_off.gif"		nav_ser_hov.src = "images/nav_ser_hov.gif"		nav_ser_on.src = "images/nav_ser_on.gif"		nav_pro_off.src = "images/nav_pro_off.gif"		nav_pro_hov.src = "images/nav_pro_hov.gif"		nav_pro_on.src = "images/nav_pro_on.gif"		nav_equip_off.src = "images/nav_equip_off.gif"		nav_equip_hov.src = "images/nav_equip_hov.gif"		nav_equip_on.src = "images/nav_equip_on.gif"		nav_contact_off.src = "images/nav_contact_off.gif"		nav_contact_hov.src = "images/nav_contact_hov.gif"		nav_contact_on.src = "images/nav_contact_on.gif"	}// rollovers - single :: 2 of 2	function chgImg(imgField,newImg) {		if (document.images) {			document[imgField].src= eval(newImg + ".src")		}	}// xhtml code - single :: <a href="snowflake.html" onmouseover="chgImg('snowflake','butt_snowflake_hov')" onmouseout="chgImg('snowflake','butt_snowflake_off')" onfocus="if(this.blur)this.blur()"><img src="images/butt_snowflake_off.gif" width="#" height="#" alt="Snowflake" border="0" name="snowflake" /></a>// pop-up window		function pOp(theURL,winName,features) {  window.open(theURL,winName,features);}//<a href="javascript:pOp('snowflake.html','snowflake','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500');">View</a>// frame breaker		if (top.location != self.location) {		top.location = self.location		}				// test//	alert("WoRkiNg!");// calculator Onefunction validate() { 	missinginfo = ""	if (document.LAYOUTFORM.x.value == "")  		missinginfo += "x \n ";	if (document.LAYOUTFORM.x.value.indexOf("<") != -1)		missinginfo += "x \n ";		var digits="0123456789";  	var temp; 	for (var i=0; i<document.LAYOUTFORM.x.value.length; i++){  		temp=document.LAYOUTFORM.x.value.substring(i,i+1); 		if (digits.indexOf(temp)==-1){  			missinginfo += "x \n ";			i = document.LAYOUTFORM.x.value.length; 		} 	} if (document.LAYOUTFORM.y.value == "")  missinginfo += "y \n ";if (document.LAYOUTFORM.y.value.indexOf("<") != -1)missinginfo += "y \n ";var digits="0123456789";  var temp; for (var i=0; i<document.LAYOUTFORM.y.value.length; i++){  temp=document.LAYOUTFORM.y.value.substring(i,i+1); if (digits.indexOf(temp)==-1){  missinginfo += "y \n ";i = document.LAYOUTFORM.y.value.length; } } if (document.LAYOUTFORM.z.value == "")  missinginfo += "z \n ";if (document.LAYOUTFORM.z.value.indexOf("<") != -1)missinginfo += "z \n ";var digits="0123456789";  var temp; for (var i=0; i<document.LAYOUTFORM.z.value.length; i++){  temp=document.LAYOUTFORM.z.value.substring(i,i+1); if (digits.indexOf(temp)==-1){  missinginfo += "z \n ";i = document.LAYOUTFORM.z.value.length; } } 	/*	if (document.LAYOUTFORM.cost.value.indexOf("<") != -1)		missinginfo += "cost \n ";			var digits="0123456789";  	var temp; 	for (var i=0; i<document.LAYOUTFORM.cost.value.length; i++){  		temp=document.LAYOUTFORM.cost.value.substring(i,i+1); 		if (digits.indexOf(temp)==-1){  			missinginfo += "cost \n ";			i = document.LAYOUTFORM.cost.value.length; 		} 	} 	*/if (missinginfo != "") {   var a = new Array(0, 0, 0, 0);  while (a[0] != -1) {    a[0] = missinginfo.indexOf(" \n", a[2]);    if ( a[0] != -1) {      a[0] = a[0]+3;      a[1] = missinginfo.substring(a[2], a[0]);      a[3] = missinginfo.indexOf(a[1], a[0]);      if (a[3] != -1) {        missinginfo = missinginfo.substring(0, a[3]) + missinginfo.substring(a[3]+a[1].length, missinginfo.length);      }      a[2] = a[0];    }  }   missinginfo =  "The Following Fields are Incorrectly Filled Out :  \n\n" +   " " + missinginfo  +   "\nBe sure that you have used no spaces, symbols or text in your entries. Please re-enter and submit again.";   alert(missinginfo);   return false; } else return true;}var FU_os=""+document.LAYOUTFORM.onsubmit;if(FU_os.indexOf("FU_Calculate()")==-1) document.LAYOUTFORM.onsubmit=validate;// calculator Twofunction FU_Calculate(){var rv=validate();if(!rv) return false;with(document.LAYOUTFORM){var A1=parseFloat(x.value);if(isNaN(A1)) A1=0;var A2=parseFloat(y.value);if(isNaN(A2)) A2=0;var A3=parseFloat(z.value);if(isNaN(A3)) A3=0;Atotal=""+(Math.ceil(A1*A2*144*A3/46656)) ;if(Atotal.indexOf(".")!=-1) yards.value=Atotal.substring(0,Atotal.lastIndexOf(".")+3);else yards.value=Atotal;var B1=0  //parseFloat(cost.value);if(isNaN(B1)) B1=0;var B2=parseFloat(yards.value);if(isNaN(B2)) B2=0;Btotal=""+(B1*B2) ;Btotal+=((Btotal.indexOf(".")!=-1)?"":".")+"000";if(Btotal.indexOf(".")!=-1) costtotal.value=Btotal.substring(0,Btotal.lastIndexOf(".")+3);else costtotal.value=Btotal;var C1=parseFloat(costtotal.value);if(isNaN(C1)) C1=0;Ctotal=""+(C1*.075) ;Ctotal+=((Ctotal.indexOf(".")!=-1)?"":".")+"000";if(Ctotal.indexOf(".")!=-1) tax.value=Ctotal.substring(0,Ctotal.lastIndexOf(".")+3);else tax.value=Ctotal;var D1=parseFloat(tax.value);if(isNaN(D1)) D1=0;var D2=parseFloat(costtotal.value);if(isNaN(D2)) D2=0;Dtotal=""+(D1+D2) ;Dtotal+=((Dtotal.indexOf(".")!=-1)?"":".")+"000";if(Dtotal.indexOf(".")!=-1) grandtotal.value=Dtotal.substring(0,Dtotal.lastIndexOf(".")+3);else grandtotal.value=Dtotal;}return true;}