//---[ Validador de busca ]--------------------------------------------------------------------------------- // function validaBusca() { var ok = true; var qerro = 0; var mensagem = "" var mBusc_Palavras = document.mForm_Busca.mBusc_Palavras.value; if (mBusc_Palavras.length < 2) { qerro = qerro + 1 mensagem += (qerro + ". Digite pelo menos 2 caracteres.\n"); document.mForm_Busca.mBusc_Palavras.focus(); ok = false; } if (ok == false) { if (qerro > 1) { alert("Atenção: Ocorreram " + qerro + " erros\n--------------------------------------------------------------------------\n" + mensagem + "--------------------------------------------------------------------------\nClique OK e tente novamente."); } else { alert("Atenção: Ocorreu " + qerro + " erro\n--------------------------------------------------------------------------\n" + mensagem + "--------------------------------------------------------------------------\nClique OK e tente novamente."); } return false; } else if (ok == true) { document.mForm_Busca.submit(); } } // //---------------------------------------------------------------------------------------------------------- //---[ Validador de formulário de Fale Conosco ]------------------------------------------------------------ // function valida_mFale_Formulario() { var ok = true; var qerro = 0; var mensagem = "" var txtNome = document.mFale_Formulario.mFale_txtNome.value; var txtEmail = document.mFale_Formulario.mFale_txtEmail.value; var txtMensagem = document.mFale_Formulario.mFale_txtMensagem.value; if (txtNome == "") { qerro = qerro + 1 mensagem += (qerro + ". O campo NOME deve ser preenchido.\n"); document.mFale_Formulario.mFale_txtNome.focus(); ok = false; } if (txtEmail == "") { qerro = qerro + 1 mensagem += (qerro + ". O campo E-MAIL deve ser preenchido.\n"); document.mFale_Formulario.mFale_txtEmail.focus(); ok = false; } else { if (valida_EMAIL(txtEmail) == false) { qerro = qerro + 1 mensagem += (qerro + ". O E-MAIL digitado está incorreto. \n"); document.mFale_Formulario.mFale_txtEmail.focus(); ok = false; } } if (txtMensagem == "") { qerro = qerro + 1 mensagem += (qerro + ". O campo SUA MENSAGEM deve ser preenchido.\n"); document.mFale_Formulario.mFale_txtMensagem.focus(); ok = false; } if (ok == false) { if (qerro > 1) { alert("Atenção: Ocorreram " + qerro + " erros\n--------------------------------------------------------------------------\n" + mensagem + "--------------------------------------------------------------------------\nClique OK e tente novamente."); } else { alert("Atenção: Ocorreu " + qerro + " erro\n--------------------------------------------------------------------------\n" + mensagem + "--------------------------------------------------------------------------\nClique OK e tente novamente."); } return false; } else if (ok == true) { return true; } } // //---------------------------------------------------------------------------------------------------------- //---[ Função para substituir Imagem e Texto no evento onMouse do Menú ]------------------------------------ // function movein(which,html,nome) { which.style.background='' if (document.getElementById) { document.getElementById("boxdescription").innerHTML=html; } else { boxdescription.innerHTML=html; if (parseInt(navigator.appVersion) >= 3) document.images.imgPeq.src = 'imgs/'+nome+'.jpg'; } } function moveout(which) { which.style.background='' if (document.getElementById) { document.getElementById("boxdescription").innerHTML=' '; } else { boxdescription.innerHTML=' '; if (parseInt(navigator.appVersion) >= 3) document.images.imgPeq.src = 'imgs/i_taturanas_p.jpg'; } } // //----------------------------------------------------------------------------------------------------------