<!--
{
topnav1off = new Image();
topnav1off.src = "images/btn_home_01.jpg";
topnav1on = new Image();
topnav1on.src = "images/btn_home_02.jpg";
topnav2off = new Image();
topnav2off.src = "images/btn_quemsomos_01.jpg";
topnav2on = new Image();
topnav2on.src = "images/btn_quemsomos_02.jpg";
topnav3off = new Image();
topnav3off.src = "images/btn_distribuidores_01.jpg";
topnav3on = new Image();
topnav3on.src = "images/btn_distribuidores_02.jpg";
topnav4off = new Image();
topnav4off.src = "images/btn_catalogo_01.jpg";
topnav4on = new Image();
topnav4on.src = "images/btn_catalogo_02.jpg";
topnav5off = new Image();
topnav5off.src = "images/btn_localizacao_01.jpg";
topnav5on = new Image();
topnav5on.src = "images/btn_localizacao_02.jpg";
topnav6off = new Image();
topnav6off.src = "images/btn_contato_01.jpg";
topnav6on = new Image();
topnav6on.src = "images/btn_contato_02.jpg";
}


function changeImage(imgDocID1,imgObjName1) {
{
document.images[imgDocID1].src = eval(imgObjName1 + ".src");}
}

// function valida_contato()
// Valida dados do formulário de contato
function valida_contato() {
nome_contato = document.contato.nome_contato;
if (nome_contato.value.length == 0) {
alert("Digite seu nome");
nome_contato.focus();
return false;
}
telefone_contato = document.contato.telefone_contato;
if (telefone_contato.value.length == 0) {
alert("Digite seu telefone");
telefone_contato.focus();
return false;
}
email_contato = document.contato.email_contato;
if (email_contato.value.length == 0) {
alert("Digite seu e-mail");
email_contato.focus();
return false;
}
if (email_contato.value.indexOf("@", 0) == -1 || email_contato.value.indexOf(".", 0) == -1) {
alert("E-mail inválido");
email_contato.focus(); 
return false;
}
/*
mensagem_contato = document.contato.mensagem_contato;
if (mensagem_contato.value.length == 0) {
alert("Digite sua mensagem");
mensagem_contato.focus();
return false;
}
*/
}

// function valida_indique_amigo()
// Valida dados do formulário de indique a um amigo
function valida_indique_amigo() {
nome_remetente = document.indique_amigo.nome_remetente;
if (nome_remetente.value.length == 0) {
alert("Digite seu nome");
nome_remetente.focus();
return false;
}
email_remetente = document.indique_amigo.email_remetente;
if (email_remetente.value.length == 0) {
alert("Digite seu e-mail");
email_remetente.focus();
return false;
}
if (email_remetente.value.indexOf("@", 0) == -1 || email_remetente.value.indexOf(".", 0) == -1) {
alert("E-mail inválido");
email_remetente.focus(); 
return false;
}
nome_destinatario = document.indique_amigo.nome_destinatario;
if (nome_destinatario.value.length == 0) {
alert("Digite o nome do seu amigo");
nome_destinatario.focus();
return false;
}
email_destinatario = document.indique_amigo.email_destinatario;
if (email_destinatario.value.length == 0) {
alert("Digite o e-mail do seu amigo");
email_destinatario.focus();
return false;
}
if (email_destinatario.value.indexOf("@", 0) == -1 || email_destinatario.value.indexOf(".", 0) == -1) {
alert("E-mail do seu amigo inválido");
email_destinatario.focus(); 
return false;
}
}

// -->
