<!-- Begin
// This part validates using an alert box only
function validateEmail() {
var themessage = "Please check the following: \n";
if (form.name.value < 2) {
themessage = themessage + "\n - Your Name";
}
//if (form.phone.value < 2) {
//themessage = themessage + "\n - Telephone No";
//}
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 -->


