//Validates the contact form
//
function validate_mod1() {
if (document.mod1.name.value.length<1) {
    alert("Please enter your name.");
    document.mod1.name.focus();
    return false;
  }
if (document.mod1.phone.value.length<6) {
    alert("Please enter your telephone number.");
    document.mod1.phone.focus();
    return false;
  }

if (document.mod1.email_1.value.length<1){
    alert("Please enter a valid email address.");
    document.mod1.email_1.focus();
    return false;
  }

if (document.mod1.email_1.value != document.mod1.email_2.value){
    alert("Email addresses not the same.");
    document.mod1.email_2.focus();
    return false;
  }

if (document.mod1.enquiry.value.length<1){
    alert("What's the question.");
    document.mod1.enquiry.focus();
    return false;
  }
return true;
}


//Validates the booking form
//
function validate_mod2() {

if (document.mod2.second_name.value.length<1) {
    alert("Please enter your surname.");
    document.mod2.second_name.focus();
    return false;
  }

if (document.mod2.phone.value.length<6) {
    alert("Please enter your telephone number.");
    document.mod2.phone.focus();
    return false;
  }

if (document.mod2.email_1.value == ""){
    alert("Enter a valid Email addresses.");
    document.mod2.email_1.focus();
    return false;
  }

if (document.mod2.email_1.value != document.mod2.email_2.value){
    alert("Email addresses not the same.");
    document.mod2.email_2.focus();
    return false;
  }

return true;
}
