﻿
function comprobarLogin(){
 
    this.url = "";
    this.errormail = "Compruebe su mail";
    this.errorpass = "Compruebe su password";
     
}

comprobarLogin.prototype.login = function(email,password)
{
      var strError = ""
      if (!isEml(email)) strError = this.errormail + '\n';
      if (password.length==0) strError += this.errorpass;
      if (strError != "")
      {
        alert(strError);
      }
      else
      {
            document.getElementById("accion").value="loginAgencia";
      }
     
}