
function checkemail(email)
{
  var result = false;
  var theStr = new String(email);
  var index = theStr.indexOf("@");
  if (index > 0)
  {
  	var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1)) result = true;
  }
  
  return result;
}



function validate_forgot()
{
x=document.info


forgot_email=x.forgot_email.value

submitOK="True"


if (checkemail(forgot_email)==false) 
 {
 alert("Invalid email")
 document.info.forgot_email.focus()
 return false
 }
 

}

function CheckText()
{
   // Get ASCII value of key that user pressed
   var key = window.event.keyCode;
   // Was key that was pressed a special character (<,>,<!"#$%&'>,<;>)?
   if ( key != 33 && key != 34 && key != 35 && key != 36 && key != 37 && key != 38 && key != 39 && key != 59 )
      return; // if so, do nothing
   else
      window.event.returnValue = null; // otherwise, discard character
}




