function Validator(theForm)
{
  if (theForm.contactname.value == "")
  {
	alert("Please enter your name.");
	theForm.contactname.focus();
	return (false);
  }
  
  if (theForm.postcode.value == "")
  {
	alert("Please enter your postcode.");
	theForm.postcode.focus();
	return (false);
  }
  
    if (theForm.postcode.value.length != 4)
  {
	alert("Please enter only 4 digits for the postcode.");
	theForm.postcode.focus();
	return (false);
  }
  
      if (theForm.turnover.value == "")
  {
	alert("Please enter a value for business turnover");
	theForm.turnover.focus();
	return (false);
  }
  
        if (theForm.employees.value == "")
  {
	alert("Please enter a value for employees");
	theForm.employees.focus();
	return (false);
  }
  
  
  
  
    if (theForm.primaryphone.value == "")
  {
	alert("Please enter a valid phone number.");
	theForm.primaryphone.focus();
	return (false);
  }
  
      if (theForm.primaryphone.value == "")
  {
	alert("Please enter a valid phone number.");
	theForm.primaryphone.focus();
	return (false);
  }
  
  
  
  if (theForm.primaryphone.value != "")
  {
	  	  if (theForm.primaryphone.value.length < 8)
		  {
			alert("Please enter 8 digits for your phone number.");
			theForm.primaryphone.focus();
			return (false);
		  }
  }
  

}