// JavaScript Document
function validateEmail(emailAddress) {
	
	


	var re;
	// Rules for the email regular expression:
	// The start of the email must have at least one character
	// before the @ sign
	// There may be either a . or a -, but not together before the @ sign
	// There must be an @ sign
	// At least once character must follow the @ sign
	// There may be either a . or a -, but not together in the address
	// The address must end with a . followed by at least 2 characters
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
	if (re.test(emailAddress) == true)
	return true;
	else {
	alert("Please provide a valid email Address");
	return false;
	
	}
	
	
	


}