<!--
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 indicate when you would like us to call you");
	theForm.timetocall.focus();
	theForm.timetocall.style.backgroundColor="#f4e7c2";
	return false;
}
//product specific validation//
if ((theForm.window.checked==true) && (theForm.qwindow.value ==""))
{
	alert("Please indicate approximately how many windows you are interested in");
	theForm.qwindow.focus();
	theForm.qwindow.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.window.checked==true) && (theForm.mwindow.value ==""))
{
	alert("Nodwch Coed caled/PVCu/Aluminium");
	theForm.mwindow.focus();
	theForm.mwindow.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.baywindow.checked==true) && (theForm.qbaywindow.value ==""))
{
	alert("Please indicate approximately how many bay windows you are interested in");
	theForm.qbaywindow.focus();
	theForm.qbaywindow.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.baywindow.checked==true) && (theForm.mbaywindow.value ==""))
{
	alert("Nodwch Coed caled/PVCu/Aluminium");
	theForm.mbaywindow.focus();
	theForm.mbaywindow.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.frontdoor.checked==true) && (theForm.qfrontdoor.value ==""))
{
	alert("Please indicate approximately how many front doors you are interested in");
	theForm.qfrontdoor.focus();
	theForm.qfrontdoor.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.frontdoor.checked==true) && (theForm.mfrontdoor.value ==""))
{
	alert("Nodwch Coed caled/PVCu/Aluminium");
	theForm.mfrontdoor.focus();
	theForm.mfrontdoor.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.backdoor.checked==true) && (theForm.qbackdoor.value ==""))
{
	alert("Please indicate approximately how many back doors you are interested in");
	theForm.qbackdoor.focus();
	theForm.qbackdoor.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.backdoor.checked==true) && (theForm.mbackdoor.value ==""))
{
	alert("Nodwch Coed caled/PVCu/Aluminium");
	theForm.mbackdoor.focus();
	theForm.mbackdoor.style.backgroundColor="#f4e7c2";
	return false;
}
if ((theForm.conservatory.checked==true) && (theForm.qconserv.value ==""))
{
	alert("Nodwch Coed caled/PVCu/Aluminium");
	theForm.qconserv.focus();
	theForm.qconserv.style.backgroundColor="#f4e7c2";
	return false;
}
return (true);
}
//-->
