function validateForm(thisform) 
{

// validate the Name field

      if (thisform.wdhtname.value=="")
      {
        alert("Please enter a name - thank you");
        thisform.wdhtname.focus();
        return false;
      }

// validate the Nnumber field

      if (thisform.wdhtnumseat.value=="")
      {
        alert("Please enter the number of people wishing to attend - thank you");
        thisform.wdhtnumseat.focus();
        return false;
      }


      if (thisform.wdhtpref[0].checked)
      {
        if(thisform.wdhtphone.value =="") {
	  alert("Please complete the contact phone field - Thank you");
	  thisform.wdhtphone.focus();
	  return false;
	}
      }
      else
        if (thisform.wdhtpref[1].checked)
        {
          chkadd = new String(thisform.wdhtemail.value);
	  if(chkadd =="") {
	  	alert("Please complete the email address field - Thank you");
	  	thisform.wdhtemail.focus();
		return false;
	  }

          if(chkadd.indexOf('@')== -1) {
		alert("Not a valid email address - i.e. needs the @ symbol");
		thisform.wdhtemail.focus();
		return false;
          }
        }
        else
        {
          alert("Please enter a preference for how you would like us to contact you - thank you");
          return false;
        }

// validate the Date field

      if (thisform.wdhtdate.value=="")
      {
        alert("Please enter the date required - thank you");
        thisform.wdhtdate.focus();
        return false;
      }


      return true;
}