
function Validator(theForm)
{
  
  
  if (theForm.fname.value == "")
  {
    alert("Please enter your name.");
    theForm.fname.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.prefarea1.value == "")
  {
    alert("Please enter at least one area of preference");
    theForm.prefarea1.focus();
    return (false);
  }
  
       if (theForm.adultno.value == "")
  {
    alert("Please enter an amount of adults attending");
    theForm.adultno.focus();
    return (false);
  }
  
       if (theForm.bedrooms.value == "")
  {
    alert("Please enter an amount of bedrooms needed");
    theForm.bedrooms.focus();
    return (false);
  }
  
       if (theForm.checkin1.value == "")
  {
    alert("Please enter at least one check in time");
    theForm.checkin1.focus();
    return (false);
  }
  
       if (theForm.checkout1.value == "")
  {
    alert("Please enter at least one check out time");
    theForm.checkout1.focus();
    return (false);
  }
  
return (true);
}
