function validate_form () {

if(document.Subscribe.Name.value.length <1)
{alert("You left the Name field blank")
document.Subscribe.Name.focus();return false}
if(document.Subscribe.Phone.value.length <3)
{alert("You must enter a complete main phone number.")
document.Subscribe.Phone.focus();return false}	
if (document.Subscribe.email.value!="")
{
if (document.Subscribe.email.value.indexOf("@")==-1 || document.Subscribe.email.value.indexOf(".")==-1 || document.Subscribe.email.value.indexOf(" ")!=-1 || document.Subscribe.email.value.length<6)
{alert("Sorry, your e-mail address is not valid.\r\n");
document.Subscribe.email.focus();return false}
}
if(document.Subscribe.email.value.length <1)
{alert("You must enter a valid e-mail address.\r\n")
document.Subscribe.email.focus();return false}
if(document.Subscribe.AdvertisingSource.value.length <1)
{alert("You left the Advertising Source field blank")
document.Subscribe.AdvertisingSource.focus();return false}
if(document.Subscribe.product.value.length <1)
{alert("You left the Product of Interest field blank")
document.Subscribe.product.focus();return false}
if(document.Subscribe.ProjectType.value.length <1)
{alert("You left the Project Type field blank")
document.Subscribe.ProjectType.focus();return false}
if(document.Subscribe.Postcode.value.length <1)
{alert("You left the Postcode field blank")
document.Subscribe.Postcode.focus();return false}
}