function ValidaEmail(Email){
  inval = "\ \"\/\:\,\;\{\}\$\\\\[\]\~\'\^\!\?\=\+\*\#\&\á\é\í\ó\ú\Á\É\Í\Ó\Ú\ü\Ü\â\Â\ê\Ê\î\Î\ô\Ô\û\Û\ç\Ç\à\À\ã\Ã\õ\Õ\%\¨\<\>";

  for (i=0; i<inval.length; i++){
    char_ruim = inval.charAt(i);
    if (Email.indexOf(char_ruim,0) > -1){
      return 1;
    }
  }
  atPos = Email.indexOf("@",1);
  periodPos = Email.indexOf(".",atPos);
  if ((atPos == -1) || (Email.indexOf("@",atPos+1) > -1) || (periodPos == -1) || (periodPos+3 > Email.length)){
    return 1;
  }
  return 0;
}