118
| <![CDATA[<label id='lblcpf' style='display:none;'>C.P.F.:<input type='text' name='txtcpf' value='' id='txtcpf' size=20 maxlength=20 style='display:none;'></input><br></label>]]>
|
118
| <![CDATA[<input type='text' name='txtcpf' value='' id='txtcpf' size=20 maxlength=20 style='display:none;'>]]>
|
119
| <![CDATA[<input type='text' name='txtcnpj' value='' id='txtcnpj' size=20 maxlength=20 style='display:block;'>]]>
|
120
| <![CDATA[<label id='lblnome' style='display:none;'>Nome:<input type='text' name='txtnome' value='' onChange='javascript:this.value=this.value.toUpperCase();' onKeyPress='return sem_acento(event);' size=70 maxlength=70 style='display:none;'></input><br></label>]]>
|
120
| <![CDATA[<input type='text' name='txtnome' value='' onChange='javascript:this.value=this.value.toUpperCase();' onKeyPress='return sem_acento(event);' size=70 maxlength=70 style='display:none;'>]]>
|
121
| <![CDATA[<input type='text' name='txtrazao' value='' onChange='javascript:this.value=this.value.toUpperCase();' onKeyPress='return sem_acento(event);' size=70 maxlength=70 style='display:block;'>]]>
|
122
| <![CDATA[<input type='text' name='txtemail' value='' pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" onChange='javascript:this.value=this.value.toLowerCase();' size=70 maxlength=70 style='display:block;'>]]>
|
123
| <![CDATA[<input type='text' name='txtendereco' value='' onChange='javascript:this.value=this.value.toUpperCase();' onKeyPress='return sem_acento(event);' size=100 maxlength=100 style='display:block;'>]]>
|
124
| <![CDATA[<input type='text' name='txttel' value='' onChange='javascript:this.value=this.value.toUpperCase();' onKeyPress='return sem_acento(event);' size=70 maxlength=70 style='display:block;'>]]>
|
69
| <![CDATA[<style type="text/css">
form .content{
width:100%;
position:relative;
}
input{
color:#000000;
font-family:"Arial,Helvetica,Sans-Serif";
font-style:"bold";
font-size:16pt;
}
input:focus
{
background-color:#ffff00;
border:2px solid #000080;
}
</style>]]>
|
116
| <![CDATA[<input type='radio' name='qual' value='opcpf' onclick='valor("opcpf")'>]]>
|
117
| <![CDATA[<input type='radio' name='qual' value='opcnpj' checked onclick='valor("opcnpj")'>]]>
|
8
| <![CDATA[<script type="text/javascript">
$(document).ready(function(){
$("#txtcnpj").mask("99.999.999/9999-99");
$("#txtcpf").mask("999.999.999-99");
});
</script>]]>
|
14
| <![CDATA[<script type="text/javascript">
function valor(qual)
{
if(qual=='opcpf')
{
document.getElementById("lblcpf").style.display = 'block';
document.getElementById("lblnome").style.display = 'block';
document.getElementById("lblcnpj").style.display = 'none';
document.getElementById("lblrazao").style.display = 'none';
document.form.txtcpf.style.display='block';
document.form.txtnome.style.display='block';
document.form.txtcnpj.style.display='none';
document.form.txtrazao.style.display='none';
}
if(qual=='opcnpj')
{
document.getElementById("lblcpf").style.display = 'none';
document.getElementById("lblnome").style.display = 'none';
document.getElementById("lblcnpj").style.display = 'block';
document.getElementById("lblrazao").style.display = 'block';
document.form.txtcpf.style.display='none';
document.form.txtnome.style.display='none';
document.form.txtcnpj.style.display='block';
document.form.txtrazao.style.display='block';
}
}
function formacpf(v) {
v = v.replace( /\D/g , ""); //Remove tudo o que não é dígito
v = v.replace( /(\d{3})(\d)/ , "$1.$2"); //Coloca um ponto entre o terceiro e o quarto dígitos
v = v.replace( /(\d{3})(\d)/ , "$1.$2"); //Coloca um ponto entre o terceiro e o quarto dígitos
//de novo (para o segundo bloco de números)
v = v.replace( /(\d{3})(\d{1,2})$/ , "$1-$2"); //Coloca um hífen entre o terceiro e o quarto dígitos
return v;
}
function formacnpj(v) {
v = v.replace( /\D/g , ""); //Remove tudo o que não é dígito
v = v.replace( /^(\d{2})(\d)/ , "$1.$2"); //Coloca ponto entre o segundo e o terceiro dígitos
v = v.replace( /^(\d{2})\.(\d{3})(\d)/ , "$1.$2.$3"); //Coloca ponto entre o quinto e o sexto dígitos
v = v.replace( /\.(\d{3})(\d)/ , ".$1/$2"); //Coloca uma barra entre o oitavo e o nono dígitos
v = v.replace( /(\d{4})(\d)/ , "$1-$2"); //Coloca um hífen depois do bloco de quatro dígitos
return v;
}
</script>]]>
|
57
| <![CDATA[<script type="text/javascript">
function sem_acento(e,args)
{
if (document.all){var evt=event.keyCode;} // caso seja IE
else{var evt = e.charCode;} // do contrário deve ser Mozilla
// criando a lista de teclas permitidas
var valid_chars = '0123456789abcdefghijlmnopqrstuvxzwykABCDEFGHIJLMNOPQRSTUVXZWYK-_ '+args;
var chr= String.fromCharCode(evt); // pegando a tecla digitada
if (valid_chars.indexOf(chr)>-1){return true;}
return false; // do contrário nega
}
</script>]]>
|