function checkEmail(checkString) {

		
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(checkString))
	{
	return true;
	} 
	else 
	{
	alert ("Sorry, the email address you\nentered is not in the correct\nformat.");
	return false;
	}
}

function checkEmail1(string) {
	var chk;
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
	    chk = true;
	else
	    chk = false;
		
    if (chk) {
        return true;
    } else {
      alert ("Sorry, the email address you\nentered is not in the correct\nformat.");
      return false;
    }
}
