function validateEmailForm(form){
	//alert('test');
	//note this function doesn't get called when a user hits enter, only when they click on the submit button
	if (!isValidEmail(form.email.value)){
		alert('Please enter a valid email address.');
		return false;
	}
	else{
		document.getElementById('whileYouWait').style.visibility='hidden';
		form.submit();
	}
}

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
