function check(theForm)
{

  if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }


         if (theForm.email.value == "")
  {
    alert("Please enter an e-mail address.");
    theForm.email.focus();
    return (false);
  }
  
            if (theForm.company.value == "")
  {
    alert("Please enter the name of your company.");
    theForm.company.focus();
    return (false);
  }
  
          if (theForm.tel.value == "")
  {
    alert("Please enter your telephone number including dialing code.");
    theForm.tel.focus();
    return (false);
  }
            if (theForm.town.value == "")
  {
    alert("Please enter the town where you are based.");
    theForm.town.focus();
    return (false);
  }
  
             if (theForm.location.value == "00")
  {
    alert("Please select a county.");
    theForm.location.focus();
    return (false);
  }
  
    if (theForm.comments.value == "")
  {
    alert("Please enter the details of your enquiry");
    theForm.comments.focus();
    return (false);
  }
   

else

return true;
}
