function upperCase(x) { var y=document.getElementById(x).value document.getElementById(x).value=y.toUpperCase() } var n; var p; var p1; function ValidatePhone(){ p=p1.value if(p.length==2){ //d10=p.indexOf('(') pp=p; d4=p.indexOf('(') d5=p.indexOf(')') if(d4==-1){ pp="("+pp; } if(d5==-1){ pp=pp+")"; } //pp="("+pp+")"; document.localiza_cep.telefone.value=""; document.localiza_cep.telefone.value=pp; } if(p.length>2){ d1=p.indexOf('(') d2=p.indexOf(')') if (d2==-1){ l30=p.length; p30=p.substring(0,4); //alert(p30); p30=p30+")" p31=p.substring(4,l30); pp=p30+p31; //alert(p31); document.localiza_cep.telefone.value=""; document.localiza_cep.telefone.value=pp; } } if(p.length>5){ p11=p.substring(d1+1,d2); if(p11.length>3){ p12=p11; l12=p12.length; l15=p.length //l12=l12-3 p13=p11.substring(0,3); p14=p11.substring(3,l12); p15=p.substring(d2+1,l15); document.localiza_cep.telefone.value=""; pp="("+p13+")"+p14+p15; document.localiza_cep.telefone.value=pp; //obj1.value=""; //obj1.value=pp; } l16=p.length; p16=p.substring(d2+1,l16); l17=p16.length; if(l17>3&&p16.indexOf('-')==-1){ p17=p.substring(d2+1,d2+5); p18=p.substring(d2+5,l16); p19=p.substring(0,d2+1); //alert(p19); pp=p19+p17+"-"+p18; document.localiza_cep.telefone.value=""; document.localiza_cep.telefone.value=pp; //obj1.value=""; //obj1.value=pp; } } //} setTimeout(ValidatePhone,100) } function getIt(m){ n=m.name; //p1=document.forms[0].elements[n] p1=m ValidatePhone() } function testphone(obj1){ p=obj1.value //alert(p) p=p.replace("(","") p=p.replace(")","") p=p.replace("-","") p=p.replace("-","") //alert(isNaN(p)) if (isNaN(p)==true){ alert("Check phone"); return false; } } function CheckaCpf(){ var ok = true; var erro = "" var qerro = 0; var mensagem = "" var scpf = document.logon.cpf.value; var ssenha = document.logon.senha.value; if (scpf == "") { qerro = qerro + 1 mensagem += (qerro + ". Preencha o campo CPF ou CNPJ.\n"); document.logon.cpf.focus(); ok = false; } if (ssenha == "") { qerro = qerro + 1 mensagem += (qerro + ". Preencha o campo SENHA.\n"); document.logon.senha.focus(); ok = false; } if (ok == false) { if (qerro > 1) { alert(mensagem); } else { alert(mensagem); } return false; } else if (ok == true) { return true; } } function Focus_Cpf(){ document.getElementById("cpf").focus(); } function Focus_Senha(){ document.getElementById("senha").focus(); } function CheckaCep(){ var ok = true; var erro = "" var qerro = 0; var mensagem = "" var cep = document.localiza_cep.cepDest.value; if (cep == "") { qerro = qerro + 1 mensagem += (qerro + ". Preencha o campo CEP!\n"); document.localiza_cep.cepDest.focus(); ok = false; } if (ok == false) { if (qerro > 1) { alert(mensagem); } else { alert(mensagem); } return false; } else if (ok == true) { return true; } } function toformnome() { document.localiza_cep.nome.focus(); } function toformetapa() { document.localiza_cep.etapa.focus(); } function toformidade() { document.localiza_cep.idade.focus(); } function toformemail() { document.localiza_cep.email.focus(); } //function toformnivel_atuacao() { // document.localiza_cep.nivel_atuacao.focus(); //} function toformarea_atuacao() { document.localiza_cep.area_atuacao.focus(); } function toformsalario() { document.localiza_cep.salario.focus(); } function toformdia() { document.localiza_cep.dia.focus(); } function toformmes() { document.localiza_cep.mes.focus(); } function toformano() { document.localiza_cep.ano.focus(); } function toformtelefone() { document.localiza_cep.telefone.focus(); } function toformddd() { document.localiza_cep.ddd.focus(); } function toformplano_pagamento() { document.localiza_cep.plano_pagamento.focus(); } function toformcomplemento() { document.cadastro_4.complemento.focus(); } function toformcpf() { document.localiza_cep.cpf.focus(); } function toformsenha() { document.localiza_cep.senha.focus(); } function toformsenha2() { document.localiza_cep.senha2.focus(); } function toformcep() { document.localiza_cep.cepDest.focus(); } function toformexperiencia() { document.fim_cadastro.experiencia.focus(); } function toformescolaridade() { document.fim_cadastro.escolaridade.focus(); } function toformdescricao() { document.fim_cadastro.descricao.focus(); } function toformarquivo() { document.fim_cadastro.arquivo.focus(); } function toformnome_empresa() { document.cadastro_vaga.nome_empresa.focus(); } function toformddd_empresa() { document.cadastro_vaga.ddd.focus(); } function toformtelefone_empresa() { document.cadastro_vaga.telefone.focus(); } function toformcontato_empresa() { document.cadastro_vaga.contato.focus(); } function toformemailempresa() { document.cadastro_vaga.email.focus(); } function toformcnpjempresa() { document.cadastro_vaga.cnpj.focus(); } function toformsenhaempresa() { document.cadastro_vaga.senha.focus(); } function toformsenha2empresa() { document.cadastro_vaga.senha2.focus(); } function toformidadeiempresa() { document.cadastro_vaga.idadei.focus(); } function toformidadefempresa() { document.cadastro_vaga.idadef.focus(); } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} }