function isInt(x) {
    var y = parseInt(x);
    if (isNaN(y)) return false;
    return x == y && x.toString() == y.toString();
}

function replace(texto, s1, s2) {
    return texto.split(s1).join(s2);
}

function rutaJson() {
    return "http://www.vivionelectric.com/conateladmin/json/";
}

function Buscar() {
    var URL = document.getElementById('textBoxBuscar').value;
    document.location.href = "resultados.html?Texto=" + URL;
}

function Empleo() {
    var URL = ""; //document.getElementById('textBoxBuscar').value;
    document.location.href = "empleo.aspx?Tipo=" + URL;
}

function aleatorio(inferior, superior) {
    numPosibilidades = superior - inferior
    aleat = Math.random() * numPosibilidades
    aleat = Math.round(aleat)
    return parseInt(inferior) + aleat
} 