
function Validator(theForm)
{
  
  
  if (theForm.title.value == "")
  {
    alert("Please enter Your title");
    theForm.title.focus();
    return (false);
  }
  
  if (theForm.fname.value == "")
  {
    alert("Please enter your name.");
    theForm.fname.focus();
    return (false);
  }
  
  if (theForm.sname.value == "")
  {
    alert("Please enter your surname.");
    theForm.sname.focus();
    return (false);
  }
  
  if (theForm.prefcode.value == "")
  {
    alert("Please enter your area code.");
    theForm.prefcode.focus();
    return (false);
  }
  
   if (theForm.prefno.value == "")
  {
    alert("Please enter your contact number");
    theForm.prefno.focus();
    return (false);
  }
  
   if (theForm.email.value == "")
  {
    alert("Please enter your email address");
    theForm.email.focus();
    return (false);
  }
  
   if (theForm.country.value == "")
  {
    alert("Please enter the country you reside in");
    theForm.country.focus();
    return (false);
  }
  
   if (theForm.city.value == "")
  {
    alert("Please enter the city you reside in");
    theForm.city.focus();
    return (false);
  }
  
   if (theForm.town.value == "")
  {
    alert("Please enter the town / suburb you reside in");
    theForm.town.focus();
    return (false);
  }
  
return (true);
}
