<!-- Hide script from older browsers

re=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function SubmitIt(myForm) 
{
	if (myForm.cont_name.value=="")
	{
		alert("You must input a name.")
		myForm.cont_name.focus()
		myForm.cont_name.select()
		return false;
	}
	if (myForm.cont_tele.value=="")
	{
		alert("You must input a telephone number to enable us to contact you about your quote.")
		myForm.cont_tele.focus()
		myForm.cont_tele.select()
		return false;
	}
	if (myForm.f_vali.value=="")
	{
		alert("Please input the reference number shown in the Confirm section to proceed.")
		myForm.f_vali.focus()
		myForm.f_vali.select()
		return false;
	}

	if (re.test(myForm.cont_emai.value)) 
	{
			return true	
	}
		alert ("The email address you have entered is invalid. Please try again or call 0845 609 0106.")
		myForm.cont_emai.focus()
		myForm.cont_emai.select()
		return false;
		
	
}

-->