// JavaScript Document
function validate() {
	x=document.form;
	email=x.Email.value;
	AtPos = email.indexOf("@");
	StopPos = email.lastIndexOf(".");
	name=x.Name.value;
	comments=x.comment.value;
	submitOK="True";
	
	//clear all fields
	//formChangeBack(x);
	document.getElementById("nameError").innerHTML="";
	document.getElementById("emailError").innerHTML="";
	document.getElementById("messageError").innerHTML="";
	
	if (name.length<1) {
		document.getElementById("nameError").innerHTML="Error: No Information";
		document.getElementById("Name").className="inputReq";
		submitOK="False";
	}
	if (email.length<1) {
		document.getElementById("emailError").innerHTML="Error: No Information";
		document.getElementById("Email").className="inputReq";
		submitOK="False";
	} else if (AtPos == -1 || StopPos == -1 || StopPos - AtPos == 1) {
		document.getElementById("emailError").innerHTML="Error: Invalid Email Address";
		document.getElementById("Email").className="inputReq";
		submitOK = "False";
	}
	if (comments.length<1) {
		document.getElementById("messageError").innerHTML="Error: No Information";
		document.getElementById("comment").className="inputReq";
		submitOK="False";
	}
	if (submitOK=="False") {
		return false;
	}
}