function verifyEmailLogin()
{
var status = false;     
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
     if (document.errorform.username.value.search(emailRegEx) == -1) 
	 {
          alert("Please enter a valid email address.");
     }
   
     else 
	 {
          status = true;
     }
     return status;
}

function verifyEmailAuth()
{
var status = false;     
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
     if (document.authform.username.value.search(emailRegEx) == -1) 
	 {
          alert("Please enter a valid email address.");
     }
   
     else 
	 {
          status = true;
     }
     return status;
}