function isValidEmail(str) 
{
   return (str != "") && (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
