function Validator(theForm)
{

  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 preferred contact code.");
    theForm.prefcode.focus();
    return (false);
  }
  
  if (theForm.prefno.value == "")
  {
    alert("Please enter your preferred contact number.");
    theForm.prefno.focus();
    return (false);
  }
  
  if (theForm.altcode.value == "")
  {
    alert("Please enter your alternative contact code.");
    theForm.altcode.focus();
    return (false);
  }
  
if (theForm.altno.value == "")
  {
    alert("Please enter your alternative contact number.");
    theForm.altno.focus();
    return (false);
  }
  
  if (theForm.addr.value == "")
  {
    alert("Please enter your Postal Address.");
    theForm.addr.focus();
    return (false);
  }
  
  if (theForm.town.value == "")
  {
    alert("Please enter the town / city where you live.");
    theForm.town.focus();
    return (false);
  }
  
  if (theForm.state.value == "")
  {
    alert("Please enter the state from where you live.");
    theForm.state.focus();
    return (false);
  }
  
  if (theForm.country.value == "")
  {
    alert("Please enter the country from where you live.");
    theForm.country.focus();
    return (false);
  }
  
  if (theForm.country.value == "")
  {
    alert("Please enter the country from where you live.");
    theForm.country.focus();
    return (false);
  }
  
  if (theForm.pcode.value == "")
  {
    alert("Please enter your postal code.");
    theForm.pcode.focus();
    return (false);
  }
  
  if (theForm.pcode.value == "")
  {
    alert("Please enter your postal code.");
    theForm.pcode.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter your email.");
    theForm.email.focus();
    return (false);
  }
  
   if (theForm.adults.value == "")
  {
    alert("Please enter the amount of adults attending.");
    theForm.adults.focus();
    return (false);
  }
  
   if (theForm.children.value == "")
  {
    alert("Please enter the amount of children attending.");
    theForm.children.focus();
    return (false);
  }
  
return (true);
}
