function check_email(e) {
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

	for(i=0; i < e.length ;i++){
	if(ok.indexOf(e.charAt(i))<0){ 
	return (false);
	}	
	} 

	if (document.images) {
	re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
	re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	if (!e.match(re) && e.match(re_two)) {
	return (-1);		
	} 

	}

}

function submitCheck() {

	if (document.appForm.name.value.replace(/\s+/i,"")=="") {
		 alert("The Name field cannot be blank - please re-enter");
		 document.appForm.name.style.background = "yellow";
		 document.appForm.name.focus();
		 return false;
	}
	if(!check_email(document.appForm.email.value)){
		alert("Please enter a valid email address.");
		document.appForm.email.focus();
		if(document.all || document.getElementByID){
		document.appForm.email.style.background = "yellow";
		}
		return false;
		}
	return true;
}
