function ValidateContactUs()
{
if (document.contact_us.firstname.value=="") { alert("Please enter First Name"); document.contact_us.firstname.focus(); return (false); }
if (document.contact_us.surname.value=="") { alert("Please enter your Surname"); document.contact_us.surname.focus(); return (false); }
if (document.contact_us.email.value=="") { alert("Please enter your email address"); document.contact_us.email.focus(); return (false); }
if (document.contact_us.telephone.value=="") { alert("Please enter a contact telephone number"); document.contact_us.telephone.focus(); return (false); }
if (document.contact_us.enquiry.value=="") { alert("Please enter the details of your enquiry"); document.contact_us.enquiry.focus(); return (false); }

if ((!document.contact_us.EmailMailshotsOK.checked) && (!document.contact_us.PostalMailshotsOK.checked) && (!document.contact_us.NoMailshots.checked))
  {
     alert("Please select preference for receiving marketing correspondence from WheelsVanCentres");
     return(false);
  } 
return (true);

}

function ValidateFindMeAVan()
{
if (document.find_me_a_van.firstname.value=="") { alert("Please enter First Name"); document.find_me_a_van.firstname.focus(); return (false); }
if (document.find_me_a_van.surname.value=="") { alert("Please enter your Surname"); document.find_me_a_van.surname.focus(); return (false); }
if (document.find_me_a_van.email.value=="") { alert("Please enter your email address"); document.find_me_a_van.email.focus(); return (false); }
if (document.find_me_a_van.telephone.value=="") { alert("Please enter a contact telephone number"); document.find_me_a_van.telephone.focus(); return (false); }
if (document.find_me_a_van.details.value=="") { alert("Please enter the details of the van you are looking for"); document.find_me_a_van.details.focus(); return (false); }

return (true);

}

function ValidatePartExchange()
{
if (document.part_exchange.firstname.value=="") { alert("Please enter First Name"); document.part_exchange.firstname.focus(); return (false); }
if (document.part_exchange.surname.value=="") { alert("Please enter your Surname"); document.part_exchange.surname.focus(); return (false); }
if (document.part_exchange.email.value=="") { alert("Please enter your email address"); document.part_exchange.email.focus(); return (false); }
if (document.part_exchange.telephone.value=="") { alert("Please enter a contact telephone number"); document.part_exchange.telephone.focus(); return (false); }
if (document.part_exchange.make.value=="") { alert("Please enter the make of the vehicle"); document.part_exchange.make.focus(); return (false); }
if (document.part_exchange.model.value=="") { alert("Please enter the model of the vehicle"); document.part_exchange.model.focus(); return (false); }
if (document.part_exchange.body_style.value=="") { alert("Please enter the body style of the vehicle"); document.part_exchange.body_style.focus(); return (false); }
if (document.part_exchange.colour.value=="") { alert("Please enter the colour of the vehicle"); document.part_exchange.colour.focus(); return (false); }
if (document.part_exchange.transmission.value=="Please select") { alert("Please select the transmission type of the vehicle"); document.part_exchange.transmission.focus(); return (false); }
if (document.part_exchange.fuel.value=="Please select") { alert("Please select the fuel type of the vehicle"); document.part_exchange.fuel.focus(); return (false); }
if (document.part_exchange.mileage.value=="") { alert("Please enter the mileage of the vehicle"); document.part_exchange.mileage.focus(); return (false); }
if (document.part_exchange.pxreg.value=="") { alert("Please enter the registration of the vehicle"); document.part_exchange.pxreg.focus(); return (false); }

return (true);

}