function checkenquiryFields() { 

if (document.Contactus.name.value == "") { 
alert("Details incorrect. Please enter your name."); 
document.Contactus.name.focus(); return;

}

if (document.Contactus.phone.value == "") { 
alert("Details incorrect. Please enter your phone number."); 
document.Contactus.phone.focus(); return;

}


if (document.Contactus.email.value.indexOf("@")<3){ // checks for at least 3 characters before the @

alert("The email entered appears to be incorrect - please check the username and format of the email that it contains '@' ");
document.Contactus.Email.focus(); return;

}

if (document.Contactus.charter_date.value == "") { 
alert("Details incorrect. Please enter your charter date required."); 
document.Contactus.charter_date.focus(); return;

}

else {  // if none of the fields have any errors then submit the form

document.Contactus.submit(); // In this document,  submit the form called notify

}


}



