<!--
function ValQuote(theForm)
{
if (theForm.name.value=="")
{
	alert("Please enter your name");
	theForm.name.focus();
	theForm.name.style.backgroundColor="#f4e7c2";
	return (false);
}
if (theForm.email.value =="")
{
	alert("Please enter your email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.email.value.indexOf('@', 0) == -1) 
{
	alert("Not a valid email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#f4e7c2";
	return (false);
}
if (theForm.email.value.indexOf('.', 0) == -1) 
{
	alert("Not a valid email address");
	theForm.email.focus();
	theForm.email.style.backgroundColor="#f4e7c2";
	return (false);
}
if (theForm.dtelephone.value=="")
{
	alert("Please enter your telephone number (day)");
	theForm.dtelephone.focus();
	theForm.dtelephone.style.backgroundColor="#f4e7c2";
	return (false);
}
if (theForm.etelephone.value=="")
{
	alert("Please enter your telephone number (evening)");
	theForm.etelephone.focus();
	theForm.etelephone.style.backgroundColor="#f4e7c2";
	return (false);
}
if (theForm.address.value =="")
{
	alert("Please enter your address");
	theForm.address.focus();
	theForm.address.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.timetocall.value =="")
{
	alert("Please select when you would like us to call you");
	theForm.timetocall.focus();
	theForm.timetocall.style.backgroundColor="#f4e7c2";
	return false;
}
//form specific validation//
if (theForm.housetype.value =="")
{
	alert("Please select the type of house");
	theForm.housetype.focus();
	theForm.housetype.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.househeight.value =="")
{
	alert("Please select the height of the house");
	theForm.househeight.focus();
	theForm.househeight.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.bathrooms.value =="")
{
	alert("Please select the number of bathrooms");
	theForm.bathrooms.focus();
	theForm.bathrooms.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.bathrooms.value == "Other") && (theForm.bathroomother.value ==""))
{
	alert("You have selected Other for number of bathrooms\nPlease complete the box to provide the required information");
	theForm.bathroomother.focus();
	theForm.bathroomother.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.rooftype.value =="")
{
	alert("Please select the type of roof");
	theForm.rooftype.focus();
	theForm.rooftype.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.roofmaterial.value =="")
{
	alert("Please select the roof material");
	theForm.roofmaterial.focus();
	theForm.roofmaterial.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.roofmaterial.value == "Other") && (theForm.roofother.value ==""))
{
	alert("You have selected Other for roof material\nPlease complete the box to provide the required information");
	theForm.roofother.focus();
	theForm.roofother.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.orientation.value =="")
{
	alert("Please select the orientation");
	theForm.orientation.focus();
	theForm.orientation.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.roofsize.value =="")
{
	alert("Please enter the approximate roof size");
	theForm.roofsize.focus();
	theForm.roofsize.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.roofage.value =="")
{
	alert("Please enter the approximate age of the roof");
	theForm.roofage.focus();
	theForm.roofage.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.cylinder.value =="")
{
	alert("Please select whether you have a working hot water cylinder");
	theForm.cylinder.focus();
	theForm.cylinder.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.cylinder.value == "Yes") && (theForm.cylindersize.value ==""))
{
	alert("Please enter the approximate size of the existing cylinder");
	theForm.cylindersize.focus();
	theForm.cylindersize.style.backgroundColor="#f4e7c2";
	return false;
}
if (theForm.people.value =="")
{
	alert("Please select you many people in your household");
	theForm.people.focus();
	theForm.people.style.backgroundColor="#f4e7c2";
	return false;
}
return (true);
}
//-->

