<!-- Begin
// This part validates using an alert box only
function validateContact() {
var themessage = "Please check the following: \n";
if (form.name.value < 2) {
themessage = themessage + "\n - Your Name";
}
if (form.address.value < 2) {
themessage = themessage + "\n - Address";
}
if (form.town.value < 2) {
themessage = themessage + "\n - Town";
}
if (form.county.value < 2) {
themessage = themessage + "\n - County";
}
if (form.postcode.value < 2) {
themessage = themessage + "\n - Postcode";
}
if (form.area.value < 2) {
themessage = themessage + "\n - Area";
}
if (form.phone.value < 2) {
themessage = themessage + "\n - Telephone Number";
}
if ((form.email.value == "") || 
(form.email.value.indexOf('@') == -1) || 
(form.email.value.indexOf('.') == -1)) {
themessage = themessage + "\n - E-mail incorrect";
}

//alert if fields are empty and cancel form submit
if (themessage == "Please check the following: \n") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}

// This part checks that no symbols are used
var mikExp = /[$\:\!\;\¬\¦\£\<\>\#%\^\&\*\(\)\[\]\+\-\{\}\`\~\=\|]/;
function dodacheck(val) {
var strPass = val.value;
var strLength = strPass.length;
var lchar = val.value.charAt((strLength) - 1);
if(lchar.search(mikExp) != -1) {
var tst = val.value.substring(0, (strLength) - 1);
val.value = tst;
   }
}


//  End -->


