function checkEmail(theEmail) {
	function isValidEmail(text)
	{
		var emailsArray = text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
		if (!emailsArray) return -1; 
	}
	function checkEmailAddress(text) 
	{
		var goodEmail = text.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.cc)|(\.tv)|(\.org)|(\..{2,2}))$)\b/gi);
		if (!goodEmail) return -1;
	}
	if (checkEmailAddress(theEmail)) 
	{
		alert("Please enter a valid email address.\nExample: user@address.com");
		return false;
	}
	else {
		
		return true;
		
		
		}
	}

