﻿/* Validates an input form for email, name, etc. */
function validateForm(thisForm) {
	var isValid = 1;
	if(-1 == thisForm.Email.value.indexOf("@")) {
		isValid = 0;
	} else if (thisForm.Email.value.length == 0) {
		isValid = 0;
	}

	if (isValid == 0) {
	   thisForm.Email.focus();
	   alert("Please enter a valid email address.");
	   return false;
	} else {
		return true;
	}
}
