/*links menu principal*/

var pamcary = document.getElementById("pamcary");
var prod_serv = document.getElementById("prod_serv");
var solucoes = document.getElementById("solucoes");
var noticias = document.getElementById("noticias");
var desenvolvimento = document.getElementById("desenvolvimento");
var fale = document.getElementById("fale");

pamcary.href = "pamcary.shtml";
prod_serv.href = "prodserv_gerenciamento_iframe.shtml";
solucoes.href = "solucoes_caminhoneiros.shtml";
noticias.href = "noticias.shtml";
<!-- desenvolvimento.href = "desenvhumano_cadinicial.shtml";  -->
<!-- desenvolvimento.href = "http://www.peopleconsulting.com.br/peopledb/CandidateLogin?clientid=6";  -->
// desenvolvimento.href = "http://www.elancers.net/frames/gps_pamcary/frame_geral.asp";

//Endereço para servidor da própria Pamcary
fale.href = "faleConosco.shtml";

//Endereço para testes na TV1
//fale.href = "http://wsouza:8084/Pamcary/faleConosco.jsp";


// LINK NO LOGO PARA A PÁGINA INICIAL
function pagInicial() {
	window.location.href = "index.shtml";
}

function abreSubmenuSeguros() {
	if (document.getElementById("submenu-prodserv").style.display == "none" || document.getElementById("submenu-prodserv").style.display == "") {
		document.getElementById("submenu-prodserv").style.display = "inline";
	}
	else {
		document.getElementById("submenu-prodserv").style.display = "none";
	}
}

function abreProduto(produto) {
	
	if( produto != "0" ) {
		window.open(produto);
		document.getElementById("ddlProdutos").value = "0";
	}
}

function listaFilial() {
	window.location.href = "pamcary_filiais_lista.shtml";
}

function Buscar()
{
    var txtBusca = document.getElementById("txtBusca");
    
    if(txtBusca.value != "")
    {
        document.getElementById("frmBuscar").submit();
    }
    else
    {
        alert("Por favor digite algum parametro para realizar a busca.");
    }
}

qs=new Array()
variaveis=location.search.replace(/\x3F/,"").replace(/\x2B/g," ").split("&")
if(variaveis!=""){
    for(i=0;i<variaveis.length;i++){
        nvar=variaveis[i].split("=")
        qs[nvar[0]]=unescape(nvar[1])
    }
}
    
function QueryString(variavel){
    return qs[variavel]
}
