// JavaScript Document
function ContactValidation() {
	x=document.form1
	email2=x.email2.value
	AtPos = email2.indexOf("@");
	StopPos = email2.lastIndexOf(".");
	name=x.name.value
	comments=x.comments.value
	submitOK="True"
	
	//clear all fields
	document.getElementById("emailError").innerHTML="";
	document.getElementById("nameError").innerHTML="";
	document.getElementById("commentsError").innerHTML="";
	
	if (email2.length<1) {
		document.getElementById("emailError").innerHTML="<b>Error:</b> No Information";
		submitOK="False"
	} else if (AtPos == -1 || StopPos == -1 || StopPos - AtPos == 1) {
		document.getElementById("emailError").innerHTML="<b>Error:</b> Invalid Email Address";
		submitOK = "False";
	}
	if (name.length<1) {
		document.getElementById("nameError").innerHTML="<b>Error:</b> No Information";
		submitOK="False"
	}
	if (comments.length<1) {
		document.getElementById("commentsError").innerHTML="<b>Error:</b> No Information";
		submitOK="False"
	}
	if (submitOK=="False") {
		return false
	}
}