//
//checkemail(<field object>) this function of js, is used to
//check if the given string is in email format 'jon.dow@movie.com'
//Usage: field level validation function
//Prg: Gadi
//
function checkEmail(emailfield)
{
 var msg0 = "";
 var testresults = true;
 var string1=emailfield.value
 if ((string1.indexOf("@")==-1) || (string1.indexOf(".")==-1) ||  (string1.indexOf(".@") > -1) ||  (string1.indexOf("@.") > -1))
 {
  msg0 = "-------------------------------------------------------------------------------------------\n\n";
  msg0 += "The Email you have Entered is not valid !!\n";
  msg0 += "Please check the Email address once again, email should of Format Example:'john.doe@movie.com'\n";
  msg0 += "------------------------------------------------------------------------------------------\n\n";
  alert(msg0);
 emailfield.focus();
  testresults = false;
 }
 return (testresults);
}

function checkCVSEmail(emailField)
{
	if(emailField.value!=emailField.defaultValue && emailField.value!="")
		return checkEmail(emailField);

}
