<!-- Hide from older browsers

//Check the enquiry form is filled in correctly
function CheckForm () { 
//Initialise variables
var errorMsg = "";
//Check for a Full name
if (document.frmEnquiry.FullName.value == ""){
errorMsg += "\n\tFull Name \t- Enter your Full Name";
}

//Check for an e-mail address and that it is valid
if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
errorMsg += "\n\tE-mail Address \t- Enter your valid e-mail address";
}

//Check for a Subject
if (document.frmEnquiry.subject.value == ""){
errorMsg += "\n\tSubject \t- Enter a Subject";
}

//Check for an enquiry
if (document.frmEnquiry.inquiry.value == "") { 
errorMsg += "\n\tInquiry \t\t- Enter an inquiry";
}

//If there is aproblem with the form then display an error
if (errorMsg != ""){
msg = "______________________________________________________________\n\n";
msg += "Your Email has not been sent because there are problem(s) with the form.\n";
msg += "Please correct the problem(s) and re-submit the form.\n";
msg += "______________________________________________________________\n\n";
msg += "The following field(s) need to be corrected: -\n";

errorMsg += alert(msg + errorMsg + "\n\n");
return false;
}

return true;
}
// -->

