﻿function Validar() {
    this.Pesquisa = function () { document.getElementById("tbPesquisa").value.length < 3 ? (document.getElementById("tbPesquisa").focus(), document.getElementById("pesquisaStatus").innerHTML = "!") : window.location = "/pesquisa.aspx?texto=" + document.getElementById("tbPesquisa").value }; this.Email = function (a) {
        var b = a.indexOf("@"), c = a.length; a.indexOf("."); return a.indexOf("@") == -1 ? !1 : a.indexOf("@") == -1 || a.indexOf("@") == 0 || a.indexOf("@") == c ? !1 : a.indexOf(".") == -1 || a.indexOf(".") == 0 || a.indexOf(".") == c ?
!1 : a.indexOf("@", b + 1) != -1 ? !1 : a.substring(b - 1, b) == "." || a.substring(b + 1, b + 2) == "." ? !1 : a.indexOf(".", b + 2) == -1 ? !1 : a.indexOf(" ") != -1 ? !1 : !0
    } 
};
