//length
/*function CheckLength()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a numeric value for the length of your pool. ")	
			return false;
		}

		return true;
		
		}

//width

function CheckWidth()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a numeric value for the Width of your pool. ")	
			return false;
		}

		return true;
		
		}
//temp
function CheckTemp()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a numeric value the water temperature you would like to maintain. ")	
			return false;
		}

		return true;
		
		}


//check cost
		function CheckCost()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a numeric value  for Your Fuel Cost. ")	
			return false;
		}

		return true;
		
		}
//check phone
		function CheckPhone()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a Valid Phone Number. ")	
			return false;
		}

		return true;
		
		}

//checkfax
		function CheckFax()
			{
		var char=event.keyCode;
		if(char > 31 && char!=46 && char!=44 && (char<48 || char >57))
		{
			alert("Enter a valid Fax Number. ")	
			return false;
		}

		return true;
		
		}

//chekname

	function CheckAlpha()
	{
		var char=event.keyCode;
		if(char !=32 && char!=46 && (char<65 || char >122))
		{
		alert("Numeric Values  are not allowed ")
			return false;
		}

		return true;
		
	}

//checkcity

	function CheckCity()
	{
		var char=event.keyCode;
		if(char !=32 && char!=46 && (char<65 || char >122))
		{
		alert("Numeric Values  are not allowed ,Enter Name of Your City. ")
			return false;
		}

		return true;
		
	}

//checkstate
		function CheckState()
	{
		var char=event.keyCode;
		if(char !=32 && char!=46 && (char<65 || char >122))
		{
		alert("Numeric Values  are not allowed ,Enter Name of Your State/Province. ")
			return false;
		}

		return true;
		
	}

//checkZip

	function CheckZip()
			{
		var char=event.keyCode;
		if(char > 31 &&  (char<48 || char >57))
		{
			alert(" Alphabets Not allowed, Enter a Valid Zip Or Postal code. ")	
			return false;
		}

		return true;
		
		}

function Checkblank()
	{
		if(document.Form1.txtlength.value.length==0)
		{
			alert(" Enter the length of your pool.");
			document.Form1.txtlength.focus();
			return false;
		}
		else if(document.Form1.txtwidth.value.length==0)
		{
			alert(" Enter the width of your pool.");
			document.Form1.txtwidth.focus();
			return false;
		}
		else if(document.Form1.txttemp.value.length==0)
		{
			alert(" Enter the water temperature you would like to maintain.");
			document.Form1.txttemp.focus();
			return false;
			
		}
		else if(document.Form1.txtfirstname.value.length==0)
		{
			alert(" Enter your First Name.");
		document.Form1.txtfirstname.focus();
		return false;			
		}
		else if(document.Form1.txtlastname.value.length==0)
		{
		alert("Enter Your LastName")
		document.Form1.txtlastname.focus();
			return false;
		}
		else if (document.Form1.txtcompany.value.length==0)
		{	
		alert("Enter Your Company Name")
		document.Form1.txtcompany.focus();
		return false;
		}
		else if (document.Form1.txtaddress.value.length==0)
		{
		alert("Write Your Address")
		document.Form1.txtaddress.focus();
		return false;
		}
		else if (document.Form1.txtcity.value.length==0)
		{
		alert("Enter Name Of Your City");
		document.Form1.txtcity.focus();
		return false;
		}
		else if(document.Form1.txtstate.value.length==0)
		{
			alert("Enter State Or Province");
			document.Form1.txtstate.focus(); 
			return false
		}
		else if((document.Form1.txtzip.value.length==0)||(document.Form1.txtzip.value.length<6))
		{
		alert("Enter a Valid Zip or Postal Code");
		document.Form1.txtzip.focus();
		return false;
		}
		else if (document.Form1.txtphmor1.value.length==0 || document.Form1.txtphmor2.value.length==0 || document.Form1.txtphmor3.value.length==0)
		{
		alert("Enter A Valid Phone Number");
		document.Form1.txtphmor1.focus();

		return false;
		}
		else if (document.Form1.txtfax1.value.length==0 || document.Form1.txtfax2.value.length==0 || document.Form1.txtfax3.value.length==0)
		{
		alert("Enter A Valid Fax Number");
		document.Form1.txtfax1.focus();

		return false;
		}
		else if(document.Form1.txtemail.value.length==0)
		{
		alert("Enter Email ID")
		document.Form1.txtemail.focus();
		return false;
		}
		
		return true;
	}


function messagesent()
	{
		alert("your mail has been sent we will respond to you as soon as possible");
		window.close();
	}
	*/

