
function Validator(theForm)
{
  
  
  if (theForm.name.value == "")
  {
    alert("Please enter your name.");
    theForm.name.focus();
    return (false);
  }
  
  if (theForm.sname.value == "")
  {
    alert("Please enter your surname.");
    theForm.sname.focus();
    return (false);
  }
  
    if (theForm.prefcode.value == "")
  {
    alert("Please enter preferred contact number code.");
    theForm.prefcode.focus();
    return (false);
  }
  
   if (theForm.prefno.value == "")
  {
    alert("Please enter preferred contact number.");
    theForm.prefno.focus();
    return (false);
  }
  
     if (theForm.alterncode.value == "")
  {
    alert("Please enter an alternative contact number code.");
    theForm.alterncode.focus();
    return (false);
  }
  
   if (theForm.altno.value == "")
  {
    alert("Please enter an alternative contact number.");
    theForm.altno.focus();
    return (false);
  }
  
    if (theForm.email.value == "")
  {
    alert("Please enter an e-mail address");
    theForm.email.focus();
    return (false);
  }
  
     if (theForm.town.value == "")
  {
    alert("Please enter your City / Town");
    theForm.town.focus();
    return (false);
  }
  
     if (theForm.suburb.value == "")
  {
    alert("Please enter your Suburb");
    theForm.suburb.focus();
    return (false);
  }
  
      if (theForm.country.value == "")
  {
    alert("Please enter Country");
    theForm.country.focus();
    return (false);
  }
  
       if (theForm.referral.value == "")
  {
    alert("Please tell us where you had heard about Leopard Rock Lodge");
    theForm.referral.focus();
    return (false);
  }

 /*  if (theForm.sname.value == "")
  {
    alert("Please enter your surname.");
    theForm.sname.focus();
    return (false);
  }
  
   if (theForm.designation.value == "")
  {
    alert("Please your designation.");
    theForm.designation.focus();
    return (false);
  }
  
   if (theForm.company.value == "")
  {
    alert("Please enter your company.");
    theForm.company.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter your e-mail address.");
    theForm.email.focus();
    return (false);
  }
  
    if (theForm.telcode.value == "")
  {
    alert("Please enter your telephone code.");
    theForm.telcode.focus();
    return (false);
  }
  
    if (theForm.telno.value == "")
  {
    alert("Please enter your telephone number.");
    theForm.telno.focus();
    return (false);
  }
  
      if (theForm.faxcode.value == "")
  {
    alert("Please enter your fax code.");
    theForm.faxcode.focus();
    return (false);
  }
  
     if (theForm.faxno.value == "")
  {
    alert("Please enter your fax number.");
    theForm.faxno.focus();
    return (false);
  }
  
      if (theForm.cell.value == "")
  {
    alert("Please enter your cell number.");
    theForm.cell.focus();
    return (false);
  }
  
       if (theForm.company_nature.value == "")
  {
    alert("Please select the nature of your company");
    theForm.company_nature.focus();
    return (false);
  } */
  
return (true);
}