function lightup(imageobject, opacity) {
    if (navigator.appName.indexOf("Netscape") != -1
  && parseInt(navigator.appVersion) >= 5)
        imageobject.style.MozOpacity = opacity / 100
    else if (navigator.appName.indexOf("Microsoft") != -1
  && parseInt(navigator.appVersion) >= 4)
        imageobject.filters.alpha.opacity = opacity
}

function aumentaDiv(id) {
    document.getElementById(id).style.height = "auto";
}

function css_browser_selector(u) { var ua = u.toLowerCase(), is = function(t) { return ua.indexOf(t) > -1; }, g = 'gecko', w = 'webkit', s = 'safari', h = document.getElementsByTagName('html')[0], b = [(!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? g + ' ff2' : is('firefox/3') ? g + ' ff3' : is('gecko/') ? g : /opera(\s|\/)(\d+)/.test(ua) ? 'opera opera' + RegExp.$2 : is('konqueror') ? 'konqueror' : is('chrome') ? w + ' chrome' : is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') : is('mozilla/') ? g : '', is('j2me') ? 'mobile' : is('iphone') ? 'iphone' : is('ipod') ? 'ipod' : is('mac') ? 'mac' : is('darwin') ? 'mac' : is('webtv') ? 'webtv' : is('win') ? 'win' : is('freebsd') ? 'freebsd' : (is('x11') || is('linux')) ? 'linux' : '', 'js']; c = b.join(' '); h.className += ' ' + c; return c; }; css_browser_selector(navigator.userAgent);

function OpenNewWindow(Tela, Par, pH, pW, Scrol, menubar, resise) {
    //alert("aqui");
    if (typeof (pH) == "undefined") {
        var pW = 400;
        var pH = 260;
    }

    if (typeof (Scrol) == "undefined") {
        var Scrol = 0;
    }
    if (typeof (menubar) == "undefined") {
        var menubar = 0;
    }

    if (typeof (resise) == "undefined") {
        var resise = 0;
    }

    var iH = window.screen.availHeight;
    var iW = window.screen.availWidth;
    var d = new Date();
    var NameWin = 'Contato' + d.getSeconds();

    iW = (iW / 2) - (pW / 2);
    iH = (iH / 2) - (pH / 2);
    var sFeatures = 'menubar=' + menubar + ',scrollbars=' + Scrol + ',left=' + iW + ',top=' + iH + ',width=' + pW + ',height=' + pH + ',resizable=' + resise;

    var nwd = Tela + '?Id=' + Par;
    contato = window.open(nwd, NameWin, sFeatures);

    return (contato);
}

function fechaJanela() {
    if (top.frames.length == 0) {
        self.close();
    }
    else {
        document.location.href = 'principal.asp';
    }
}

function enviar() {
    document.aspnetForm.action = "cv/default.asp";
    document.aspnetForm.target = "_blank";
    document.aspnetForm.submit();
    //document.aspnetForm.txtNome.value = "";
    //document.aspnetForm.txtSenha.value = "";
}
function logar() {
    document.aspnetForm.action = "MixWeb/WebMixLoginCPF_ValidaUsuarioSite.asp";
    document.aspnetForm.target = "_blank";
    document.aspnetForm.submit();
    //document.aspnetForm.txtNome.value = "";
    //document.aspnetForm.txtSenha.value = "";
}

function abrirCV(tmp) {
    document.aspnetForm.action = "cv/default.asp";
    document.aspnetForm.target = "_blank";
    document.aspnetForm.cod.value = tmp;
    document.aspnetForm.submit();
    //document.aspnetForm.cod.value = "";
}

function apagaCamposCliente() {
    document.aspnetForm.action = "MixWeb/default.asp";
    document.aspnetForm.target = "_blank";
    document.aspnetForm.submit();
    //document.aspnetForm.txtNomeCliente.value = "";
   // document.aspnetForm.txtSenhaCliente.value = "";
}

function vagaInteresse() {
    pagina = "vagasDisponiveis.asp";
    parametros = "";
    OpenNewWindow(pagina, parametros, 500, 800, 1, 0);
}

function MM_openBrWindow(theURL, winName, features) { //v2.0
    window.open(theURL, winName, features);
}
