<!--
if(navigator.appName.indexOf("Netscape") != -1) document.location = "http://www.pefran.com.br/netscape.html";

function mudarArea(area){
  open("../asp/area.asp?cod=" + area,"pesquisa");
}

function construcao(){
  window.open("../diversos/construcao.htm","construcao","width=460,height=450");
}

function manutencao(){
  window.open("../manutencao/default.htm","manutencao","width=460,height=500");
}

/** Menu interativo **/
//Exibe o menu quando logado
function fMenu(vObj, vVisible){
  document.all(vObj).style.visibility = (vVisible) ? "visible" : "hidden";
}

//Rollover
function fSelecao(vObj, vOver){
  vObj.style.backgroundColor = (vOver) ? "#0000CD" : "#6495ED";
}

//Aciona o link do menu
function fLink(vUrl, bNewWindow){
  if(!bNewWindow){
    document.location = vUrl;
  }
  else{
    open(vUrl,"_blank");
  }
}

/** Mostra/oculta os subitens dos projetos **/
function fItens(vTr,vTd){
  if(vTr.style.display == "none"){
    vTr.style.display = "";
    vTd.src = "../img/expand.jpg";
  }
  else{
    vTr.style.display = "none";
    vTd.src = "../img/noexpand.jpg";
  }
}

/** Exibe a janela de detalhes do job **/
function fDetalhes(vJob){
  var oWindow = open("../main/detalhes.asp?job=" + vJob,"job" + vJob,"top=100, left=100, width=587, height=320, scrollbars=1");
  oWindow.focus();
}

/** Horarios de jornais **/
function escolhaJornal(indice, valor){
  if(indice != 0){
    filtro.submit();
  }
  else{
    document.location = "../utilidades/horarios_jornais.asp";
  }
}

function precos(jornal, caderno){
  var oWindow = open("../utilidades/precos_jornais.asp?jornal=" + jornal + "&cod_cad=" + caderno,"precos","top=50, left=50, width=616, height=400, scrollbars=1");
  oWindow.focus();
}

/** Abre a janela com o logotipo selecionado **/
function mostraLogo(logo){
  var oWindow = open("../logos_alta/" + logo,"logotipo","top=50, left=50, height=480, width=640, scrollbars=1, resizable=1");
  oWindow.focus();
}

//Busca de CEP
function fCep(vCep1, vCep2, vRes){
  if(vCep1.length == 5 && vCep2.length == 3){
    var bCep = confirm("Deseja que o endereço seja pesquisado automaticamente?");
    if(bCep == 1) open("../asp/busca_cep.asp?cep1=" + vCep1 + "&cep2=" + vCep2 + "&campo=" + vRes, "pesquisa");
  }
}
//-->