<!--
// *******************************************************************
// JAVASCRIPT Functions for Aces site.
// *******************************************************************

// Function used to check email submitted on the home page (default.asp)
function checkForm(form){
	var tempE = (form.email.value);
	// Check that a string of at least 3 characters has been entered
	if (tempE.length < 4){
		alert("Please enter a valid email address with at least 4 characters.")
		form.email.focus();
		return false;	
	}		
	// Check that an @ and . are within the string.
	if ((tempE.indexOf("@")==-1) || (tempE.indexOf(".")==-1)){
			alert("Please ensure that your email address contains both '@' and '.' symbols.");
			form.email.focus();
			return false;
	}
}



//-->
