function validate() {
	getFromName  = document.ContactForm.name.value;
	getFromEmail = document.ContactForm.email.value;
	getBusPhone  = document.ContactForm.phone.value;

   var pattern = /\s*\w+@[^\.]+\.[^\.]+(\.[^\.])*\s*/;
   var letters = /[a-zA-Z]/;
   var numbers = /[0-9]/;
   legalChars = "~0123456789.-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@+";
   alphaNums = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
   errorMsg = "";

	if (getFromName.length < 2)
		errorMsg += "\n - The Name field must include at least 2 characters.";
	if (getFromEmail.length < 7)
		errorMsg += "\n - The Email Address field must include at least 7 characters.";
	if (getBusPhone.length < 10)
		errorMsg += "\n - The Telephone No. field must include least 10 numbers.";


	//Validate Email against pattern match
	if (getFromEmail != "") {
	    if(!pattern.test(getFromEmail)) {
			errorMsg += "\nInvalid E-Mail Address."
	    }
	}
	//This enhances the previous EMail check. This checks for legal values and returns illegal values
	if (getFromEmail != "" && getFromEmail.length > 1) {
	    for(x=0; x < getFromEmail.length; x++) {
		if (legalChars.indexOf(getFromEmail.substring(x,x+1)) < 0)
		    errorMsg += "\n" + "Illegal character '"+getFromEmail.substring(x,x+1)+"' at position " +(x+1)+ " in E-Mail Address.";
	    }
	}

	//FINAL CHECK FOR ERROR MESSAGES
	if (errorMsg.length > 0) {
		errorMsg = "Please correct the following errors and then submit the form again. \n" + errorMsg
		alert (errorMsg);
		return false;
	}
return true;
}