function ValidateAdd(theForm)
{
  if (theForm.pname.value == "")
  {
    alert("Fill out the accommodation name please.");
	theForm.pname.focus();
    return (false);
  }
  if (theForm.address.value == "")
  {
    alert("Fill out the accommodation address please.");
	theForm.address.focus();
    return (false);
  }
  if (theForm.city.value == "")
  {
    alert("Fill out the accommodation city / town / area please.");
	theForm.city.focus();
    return (false);
  }
  if (theForm.region.value == "1")
  {
    alert("Select a county please.");
	theForm.region.focus();
    return (false);
  }
  
  if (theForm.type.value == "")
  {
    alert("Select accommodation type please.");
	theForm.type.focus();
    return (false);
  }
  if (theForm.contactname.value == "")
  {
    alert("Fill out the contact name please.");
	theForm.contactname.focus();
    return (false);
  }
  if (theForm.phone.value == "")
  {
    alert("Fill out your phone number please.");
	theForm.phone.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Fill out your email address please.");
	theForm.email.focus();
    return (false);
  }
  
  return (true);
}
