PageSourceSearch

https://www.calibrado.com.br/js/geral.js

js calibrado.com.br collected 2026-10-06 18:39:56 UTC 2,754 bytes, 8 lines download raw bytes

1function formatar(src,mask){var i=src.value.length;var saida=mask.substring(1,2);var texto=mask.substring(i)
2if(texto.substring(0,1)!=saida){src.value+=texto.substring(0,1);}}function mascara(o,f){v_obj=o
3v_fun=f
4setTimeout("execmascara()",1)}function execmascara(){v_obj.value=v_fun(v_obj.value)}function somenteNumeros(v){return v.replace(/\D/g,"")}function telefone(v){v=v.replace(/\D/g,"")
5v=v.replace(/(\d{4})(\d)/,"$1-$2")
6return v}function mostra(){if(document.getElementById("palavra").style.display=="none"){document.getElementById("palavra").style.display="block";}}function esconde(){if(document.getElementById("palavra").style.display=="block"){document.getElementById("palavra").style.display="none";}else{document.getElementById("palavra").style.display="none";}}function maiuscula(z){v=z.value.toUpperCase();z.value=v;}function minusculas(z){v=z.value.toLowerCase();z.value=v;}function UcWords(campo){val=campo.value;newVal=val.toLowerCase().replace(/[^A-Za-záâàãäéêèëíîìïóõòôöúùûüç][A-Za-záâàãäéêèëíîìïóõòôöúùûüç]/g,function(m){return m.toUpperCase()}).replace(/[0-9][A-Za-záâàãäéêèëíîìïóõòôöúùûüç]/g,function(m){return m.toUpperCase()}).replace(/( (da|das|e|de|do|dos|para|na|nas|no|nos) )/gi,function(m){return m.toLowerCase()}).replace(/^./,function(m){return m.toUpperCase()})
7if(val!=newVal){campo.value=newVal;}}var isNN=(navigator.appName.indexOf("Netscape")!=-1);function autoTab(input,len,e){var keyCode=(isNN)?e.which:e.keyCode;var filter=(isNN)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(input.value.length>=len&&!containsElement(filter,keyCode)){input.value=input.value.slice(0,len);input.form[(getIndex(input)+1)%input.form.length].focus();}function containsElement(arr,ele){var found=false,index=0;while(!found&&index<arr.length)if(arr[index]==ele)found=true;else
8index++;return found;}function getIndex(input){var index=-1,i=0,found=false;while(i<input.form.length&&index==-1)if(input.form[i]==input)index=i;else i++;return index;}return true;}function checkdocs(){if(document.getElementById('cpf-radio').checked){var cpf=document.getElementById('cpf');if(cpf){cpf.style.display="block";cpf.disabled="";}var cnpj=document.getElementById('cnpj');if(cnpj){cnpj.style.display="none";cnpj.disabled="disabled";cnpj.value="";}}else if(document.getElementById('cnpj-radio').checked){var cnpj=document.getElementById('cnpj');if(cnpj){cnpj.style.display="block";cnpj.disabled="";var cpf=document.getElementById('cpf');if(cpf){cpf.style.display="none";cpf.disabled="disabled";cpf.value="";}}}}var url=window.location;$(function(){$('header nav ul li a[href="'+url+'"]').addClass('active-menu-topo');$('aside li a[href="'+url+'"]').addClass('active-menu-aside');});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.