    


function Email_Validator(theForm){

  
   if(theForm.Email.value == 'Email')
  {
    alert("Please enter your Email.");
	theForm.Email.value == ''    
    theForm.Email.focus();
    return (false);
  }
  
  if(theForm.Email.value == '')
  {
    alert("Please enter your Email.");
    theForm.Email.focus();
    return (false);
  }
  


  var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@-_. \t\r\n\f";
  var checkStr = theForm.Email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and @-_. characters in your Email.");
    theForm.Email.focus();
    return (false);
  }       
  



 
  
}


