function ALtp(msg,f){ //alert('xxx'); msg_topo.innerHTML = msg; msg_topo.style.visibility="visible"; msg_topo.style.display="block"; msg_topo.focus(); if(f != 1) { setTimeout("ALtpF()",2000); } } function ALtpF(){ msg_topo.style.visibility="Hidden"; msg_topo.style.display="none"; } function validar_campos_contato(){ //campo nome if(!document.all.FContato.nome.value){ alert('preencha o campo nome'); document.all.FContato.nome.focus(); return false; } //campo email if(!document.all.FContato.email.value){ alert('preencha o campo email'); document.all.FContato.email.focus(); return false; } //validar campo email if(document.all.FContato.email.value.indexOf('@') == -1 || document.all.FContato.email.value.indexOf('.') == -1 ) { alert('campo email inválido'); document.all.FContato.email.focus(); return false; } //campo telefone if(!document.all.FContato.telefone.value){ alert('preencha o campo telefone'); document.all.FContato.telefone.focus(); return false; } //campo assunto if(!document.all.FContato.assunto.value){ alert('escolha o assunto'); document.all.FContato.assunto.focus(); return false; } //campo mensagem if(!document.all.FContato.mensagem.value){ alert('Digite a sua mensagem'); document.all.FContato.mensagem.focus(); return false; } return true; } function validar_novidades(){ //campo nome if(!document.all.Fnovidades.nome.value){ alert('preencha o campo nome'); document.all.Fnovidades.nome.focus(); return false; } //campo email if(!document.all.Fnovidades.email.value){ alert('preencha o campo email'); document.all.Fnovidades.email.focus(); return false; } //validar campo email if(document.all.Fnovidades.email.value.indexOf('@') == -1 || document.all.Fnovidades.email.value.indexOf('.') == -1 ) { alert('campo email inválido'); document.all.Fnovidades.email.focus(); return false; } //campo telefone if(!document.all.Fnovidades.telefone.value){ alert('preencha o campo telefone'); document.all.Fnovidades.telefone.focus(); return false; } return true; } function verificaPreenchimento(){ //campo nome if(!document.all.Fportal.txtLogin.value){ alert('preencha o campo Usuário'); document.all.Fportal.txtLogin.focus(); return false; } //campo email if(!document.all.Fportal.txtPass.value){ alert('preencha o campo Senha'); document.all.Fportal.txtPass.focus(); return false; } return true; } function navegacao_menu(cod,a,b,c){ document.all.menu_ativo_codigo_ant.value = document.all.menu_ativo_codigo.value; document.all.menu_ativo_click_ant.value = document.all.menu_ativo_click.value; document.all.menu_ativo_url_ant.value = document.all.menu_ativo_url.value; an = (document.all.menu_ativo_click.value*1); n = ((document.all.menu_ativo_total.value*1)-1); if(an > 0){ MenuDesativo(an,n); } document.all.menu_ativo_codigo.value = cod; document.all.menu_ativo_click.value = c; document.all.menu_ativo_url.value = a; navegacao(a,b); MenuAtivo(cod,c,n); } function MenuAtivo(id,cod,n){ eval("document.all.idmenu"+cod+".className = 'menuCA'"); eval("document.all.idmenu_separador"+cod+".className = 'menuAD'"); if(cod == 1){ eval("document.all.idmenu_Inicio"+(cod*1)+".className = 'menuA'"); }else if(cod == n){ eval("document.all.idmenu_separador"+(cod*1)+".className = 'menuAF'"); eval("document.all.idmenu_separador"+(cod*1-1)+".className = 'menuDA'"); }else{ eval("document.all.idmenu_separador"+(cod*1-1)+".className = 'menuDA'"); } MontaSub_menus(id); } function MenuDesativo(cod,n){ eval("document.all.idmenu"+cod+".className = 'menuCD'"); eval("document.all.idmenu_separador"+cod+".className = 'menuDD'"); if(cod == 1){ eval("document.all.idmenu_Inicio"+(cod*1)+".className = 'menuD'"); }else if(cod == n){ eval("document.all.idmenu_separador"+(cod*1)+".className = 'menuDF'"); eval("document.all.idmenu_separador"+(cod*1-1)+".className = 'menuDD'"); }else{ eval("document.all.idmenu_separador"+(cod*1-1)+".className = 'menuDD'"); } } function MontaSub_menus(menu){ var sub_menu_3 = '
A MOHATRONLOCALIZAÇÃO
'; var sub_menu_112 = '
HOME PAGESHOT SITESSISTEMASSITES INSTITUCIONAISBLOGSPORTAISRSS
'; var sub_menu_107 = '
HOSPEDAGEMMANUTENÇÃOE-MAILS E DOMINÍOSMAIL MARKETINGENVIO DE SMS
'; var sub_menu_121 = ''; var sub_menu_120 = ''; var sub_menu_122 = ''; ListaSubMenu.innerHTML = eval("sub_menu_"+menu); } function addFav(){ var url = "http://www.mohatron.com.br"; var title = "[MOHATRON PORTAL]"; if (window.sidebar) window.sidebar.addPanel(title, url,""); else if(window.opera && window.print){ var mbm = document.createElement('a'); mbm.setAttribute('rel','sidebar'); mbm.setAttribute('href',url); mbm.setAttribute('title',title); mbm.click(); } else if(document.all){window.external.AddFavorite(url, title);} } function NovaJanela(url,local){ w = window.open(url,local); w.focus(); }