/**
 This is vastly simplified version of the email regular expression in order to satisfy the requirements
 Patrick Sheehan at Xerox requested for his page. This extremely simplified reg-ex just checks to 
 make sure there is something before a single @ , something after it, a dot, and then something after
 the dot.  
 */

function echeck(str) {
    // Any number of not-@'s , an @ , any number of not-@'s , a dot , any number of not-@'s 
    var valid = /^[^@]+@[^@]+[.][^@]+$/.test(str); 
    return valid;
}

function ValidateEMAL(formName,fieldName){//Call this funtion.  Should validate email only.  Will not check for empty content.
	var emailID=eval('document.'+formName+'.'+fieldName);
	if ((emailID.value==null)||(emailID.value=="")){
		return true
	}
	if (echeck(emailID.value)==false){
		return false
	}
	return true
 }
