36
| <![CDATA[<body style="background:url('/pkgsiamun/Scarlos/imagem/bg.jpg') repeat-x #2a755e;" ><form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm" novalidate >
<input type="hidden" name="p_flow_id" value="231" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="57" id="pFlowStepId" /><input type="hidden" name="p_instance" value="10479168590202" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="147519995433267133608671447705828418280" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" /><input type="hidden" name="p_reload_on_submit" value="A" id="pReloadOnSubmit" /><input type="hidden" value="147519995433267133608671447705828418280" id="pSalt" /><script>
function setVariavel(valor,variavel){
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=SET_SESSION',$v('pFlowStepId'));
get.add('P1_VALOR',valor);
get.add('P1_VARIAVEL',variavel);
gReturn = get.get();
get = null;
}
</script><div class="fundo_inteiro">
<div class="topo1">
<div class="prefeitura">
<div class="fonte1">
Prefeitura Municipal de São Carlos
</div>
</div>
<div class="login">
<a href="f?p=235:1:10479168590202" target="_blank">
<div class="fonte1" style="background:url('/pkgsiamun/Scarlos/imagem/bg_login.jpg') no-repeat;">
; ; ; ; ; ;Login
</div>
</a>
</div>
<div class="home">
<a href="f?p=231:57:">
<div class="fonte1" style="background:url('/pkgsiamun/Scarlos/imagem/bg_home.jpg') no-repeat;">
; ; ; ; ; ;Home
</div>
</a>
</div>
</div>
<div class="topo2">
<img src="/pkgsiamun/Scarlos/imagem/topo.jpg" alt="topo">
</div>
<div class="engloba_regioes">
<div class="regiao_esquerda">
<div style="width:678px; text-align:left; border:1px solid #fff;">
<table class="t14BorderlessRegion" id="R167587021006676273" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td class="t14RegionHeader"> ;</td></tr>
<tr>
<td class="t14ButtonHolder"> ; ; ;</td>
</tr>
<tr>
<td class="t14RegionBody"><style>
a{
border:0px solid black;
line-height:normal;
float:none;
}
a hover{
border:0px solid #999999;
line-height:normal;
float:none;
}
</style>
<a style="color: #000;" href="f?p=231:12:10479168590202::::P0_CERT_INSCRICAO:I">
<div style="text-align:center;margin-left: 290px;">
</div>
</a><img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/></td>
</tr>
</table><table class="t14BorderlessRegion" id="R4157415412410183216" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td class="t14RegionHeader">Menu</td></tr>
<tr>
<td class="t14ButtonHolder"> ; ; ;</td>
</tr>
<tr>
<td class="t14RegionBody"><table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td align="left">
<a href="javascript:apex.submit(%7Brequest:'MOBILIARIO'%7D);" id="B4157469322553136886" title="Mobiliario"><img src="/pkgsiamun/Scarlos/imagem/icone-mobiliario.jpg" alt="Mobiliario" border="#" /></a></td><td align="right">
<a href="javascript:apex.submit(%7Brequest:'IMOBILIARIO'%7D);" id="B4157468223330118147" title="Imobiliario"><img src="/pkgsiamun/Scarlos/imagem/icone-imobiliario.jpg" alt="Imobiliario" border="#" style="margin-left:228px;" /></a></td></tr></table><img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/></td>
</tr>
</table><script>
function redirecionaPagina(servico){
if(servico == '10') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/sim-online-inicial.html';
if(servico == '20') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/espaco-empresarial.html';
if(servico == '30') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/outros-servicos.html';
if(servico == '40') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/servicos-de-a-a-z-sim-online.html';
}
function abreBoleto(session,page){
if(document.getElementById("P0_BOLETO").value == null || document.getElementById("P0_BOLETO").value == ''){
if(document.getElementById("P0_BOLETO_ANO").value != null && document.getElementById("P0_BOLETO_ANO").value != ''){
chamaPagina('f?p=231:'+page+':'+session+'::',860,750,'BO');
}
}
}
function boletoTributos(obj){
var valor = document.getElementById("P0_BOLETO").value;
if(obj.checked){
document.getElementById("P0_BOLETO").value = valor + obj.value;
}else{
if(valor.indexOf(obj.value) > -1){
document.getElementById("P0_BOLETO").value = valor.replace(obj.value,'');
}
}
}
function chamaPagina(link, largura, altura, janela){
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=yes,toolbar=no,location=no,directories=no,scrollbars=yes');
}
function confCertidao(largura, altura, janela, session){
var link = 'f?p=231:3:::::P3_INSC_IMOB,P3_NUM_CERTIDAO,P3_ANO_CERTIDAO:';
if(document.getElementById("P0_INSC_LATERAL").value == "" || document.getElementById("P0_CERTIDAO").value == "" || document.getElementById("P0_ANO_CERTIDAO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (Inscrição , Certidão, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_INSC_LATERAL").value +','+ document.getElementById("P0_CERTIDAO").value +','+document.getElementById("P0_ANO_CERTIDAO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confProcesso(largura, altura, janela, session){
var link = 'f?p=231:5:::::P5_PROCESSO_NUM,P5_PROCESSO_ANO:';
if(document.getElementById("P0_PROCESSO_NUM").value == "" || document.getElementById("P0_PROCESSO_ANO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (N° Processo, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_PROCESSO_NUM").value +','+ document.getElementById("P0_PROCESSO_ANO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confAlvara(largura, altura, janela, session){
var link = 'f?p=231:56:::NO:56:P56_COD_AUTENTICIDADE:';
if(document.getElementById("P0_COD_SEGURANCA").value == "" ){
alert("Caro (a) usuário (a) por favor informar Codigo de Autenticidade");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_COD_SEGURANCA").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function mascaras(src, mask){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if(texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
function Mascara(o,f){
v_obj=o
v_fun=f
setTimeout("execmascara()",1)
}
function execmascara(){
v_obj.value=v_fun(v_obj.value)
}
function leech(v){
v=v.replace(/o/gi,"0")
v=v.replace(/i/gi,"1")
v=v.replace(/z/gi,"2")
v=v.replace(/e/gi,"3")
v=v.replace(/a/gi,"4")
v=v.replace(/s/gi,"5")
v=v.replace(/t/gi,"7")
return v
}
function Telefone(v){
v=v.replace(/\D/g,"")
v=v.replace(/^(\d\d)(\d)/g,"($1) $2")
v=v.replace(/(\d{4})(\d)/,"$1-$2")
return v
}
function mascaraInscricao(src, mask, idPagina){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO") != null){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO").value == 'I'){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if (texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
}
}
function CentralizaPopup(width,height){
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
return 'width='+width+',height='+height+',left='+left+',top='+top;
}
function soNumeros(evt){
var key_code = evt.keyCode ? evt.keyCode : evt.charCode ? evt.charCode : evt.which ? evt.which : void 0;
if (key_code == 8 || key_code == 9 || key_code == 13 || key_code == 27){
return true;
}else if ((key_code >= 48) && (key_code <= 57)){
return true
}
return false;
}
function formataValor(objTextBox, SeparadorMilesimo, SeparadorDecimal, e){
var sep = 0;
var key = '';
var i = j = 0;
var len = len2 = 0;
var strCheck = '0123456789';
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true;
if ((whichCode == 13) || (whichCode == 8) || (whichCode == 46) || (whichCode == 37) || (whichCode == 39)){
return true;
}
if (whichCode == 9){
return true;
}
key = String.fromCharCode(whichCode); // Valor para o código da Chave
if (strCheck.indexOf(key) == -1) return false; // Chave inválida
len = objTextBox.value.length;
for(i = 0; i < len; i++)
if ((objTextBox.value.charAt(i) != '0') && (objTextBox.value.charAt(i) != SeparadorDecimal)) break;
aux = '';
for(; i < len; i++)
if (strCheck.indexOf(objTextBox.value.charAt(i))!=-1) aux += objTextBox.value.charAt(i);
aux += key;
len = aux.length;
if (len == 0) objTextBox.value = '';
if (len == 1) objTextBox.value = '0'+ SeparadorDecimal + '0' + aux;
if (len == 2) objTextBox.value = '0'+ SeparadorDecimal + aux;
if (len > 2) {
aux2 = '';
for (j = 0, i = len - 3; i >= 0; i--) {
if (j == 3) {
aux2 += SeparadorMilesimo;
j = 0;
}
aux2 += aux.charAt(i);
j++;
}
objTextBox.value = '';
len2 = aux2.length;
for (i = len2 - 1; i >= 0; i--)
objTextBox.value += aux2.charAt(i);
objTextBox.value += SeparadorDecimal + aux.substr(len - 2, len);
}
return false;
}
function CleanString( number ){
var newnumber = "" ;
for ( i = 0 ; i <= number.length ; i++ ) {
if (! isNaN( number.charAt( i )) ) newnumber = newnumber + number.charAt( i ) ;
}
return newnumber ;
}
function CleanSpaces(_s){
var _sSplit = " ";
var _a = _s.split(_sSplit);
var _str = "";
for (var i=0; i < _a.length; i++){
var _b = _a[i];
if(_b.length != 0){
_str += _b;
if(i != _a.length - 1) _str += " ";
}
}
return _str;
}
function validaCPF(umCPF) {
var mask = new String("999.999.999-99");
var temp = new String(umCPF.value);
var cpf = new String();
var i;
if(temp.length == 0){
return false;
}
// Verifica o tamanho
if ( temp.length != 11 && temp.length != 14 ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Verifica se foi digitado com a máscara
if ( temp.length != 11 )
for (i = 0; i < mask.length; i++)
if( mask.charAt(i) != "9" && mask.charAt(i) != temp.charAt(i) ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Cria uma nova string, somente com os números do CPF
for (i = 0; i < temp.length; i++)
if( !isNaN( temp.charAt(i) ) && temp.charAt(i) != " " )
cpf += temp.charAt(i);
if(cpf.length != 11){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Vê se os números não são todos iguais (isso é CPF válido!)
var ch = cpf.charAt(0);
for(i = 1; i < cpf.length; i++ ) {
if(cpf.charAt(i) != ch ) break;
}
if(i == cpf.length ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Valida o CPF
var total = 0, soma = 0;
for (i = 0; i < 9; i++){
total += cpf.charAt(i) * (10 - i);
soma += cpf.charAt(i) * 1;
}
var dv1;
if(total % 11 > 1){
dv1 = 11 - total % 11;
}else{
dv1 = 0;
}
var dv2;
total += soma + 2 * dv1;
if (total % 11 > 1){
dv2 = 11 - total % 11;
}else{
dv2 = 0;
}
if(dv1 == cpf.charAt(9) && dv2 == cpf.charAt(10)) {
return true;
}else{
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
}
function isCNPJ(s){
var r = s.value ;
var iError = 0 ;
r = CleanSpaces(r);
var nCGC_ = CleanString( r ) ;
if ( (r * 1) == 0 ) iError++ ;
if ( nCGC_.length == 15 && nCGC_.charAt(0) == "0") nCGC_ = nCGC_.substring(1 , nCGC_.length) ;
if ( nCGC_.length != 14 ) iError++ ;
var nCGC = new Array() ;
for ( i = 0 ; i < 15 ; i++ ) {
nCGC[i] = nCGC_.charAt(i) ;
}
iDV1 = ( nCGC[0] * 5 + nCGC[1] * 4 + nCGC[2] * 3 + nCGC[3] * 2 + nCGC[4] * 9 + nCGC[5] * 8 + nCGC[6] * 7 + nCGC[7] * 6 + nCGC[8] * 5 + nCGC[9] * 4 + nCGC[10] * 3 + nCGC[11] * 2 ) % 11 ;
if(iDV1 == 1 || iDV1 == 0 ) { iDV1 = 0 }
else { iDV1 = 11 - iDV1 }
if(iDV1 != nCGC[12] ) iError++ ;
iDV2 = ( nCGC[0] * 6 + nCGC[1] * 5 + nCGC[2] * 4 + nCGC[3] * 3 + nCGC[4] * 2 + nCGC[5] * 9 + nCGC[6] * 8 + nCGC[7] * 7 + nCGC[8] * 6 + nCGC[9] * 5 + nCGC[10] * 4 + nCGC[11] * 3 + nCGC[12] * 2) % 11 ;
if ( iDV2 == 1 || iDV2 == 0 ) { iDV2 = 0 }
else { iDV2 = 11 - iDV2 }
if ( iDV2 != nCGC[13] ) iError++ ;
if(s.value != ""){
if(iError > 0 ){
alert ( "O CNPJ está incorreto. Por favor, verifique.\n" ) ;
s.focus();
return false ;
}else return true ;
}
}
function ValidaEmail(obj){
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))){
alert('Email incorreto');
obj.value="";
obj.focus();
}
}
function FormataData(Campo, teclapres){
var tecla = teclapres.keyCode;
var vr = new String(Campo.value);
vr = vr.replace("/", "");
vr = vr.replace("/", "");
tam = vr.length + 1;
if (tecla != 9 && tecla != 8){
if (tam > 2 && tam < 5)
Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, tam);
if (tam >= 5 && tam <=10)
Campo.value = vr.substr(0,2) + '/' + vr.substr(2,2) + '/' + vr.substr(4,4);
}
}
function funExibeCampo(valor){
if(valor == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].itbiNumCgc.value = '';
document.forms[0].TipDoc1.checked = false;
}else{
Div2.style.visibility = 'visible';
Div1.style.visibility = 'hidden';
document.forms[0].itbiNumCpf.value = '';
document.forms[0].TipDoc0.checked = false;
}
}
function funInicializaDIV(){
if(document.forms[0].TipDoc0.checked == true || document.forms[0].TipDoc0.value == 'ok' || document.forms[0].TipDoc0Aux.value == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].TipDoc0.checked = true;
}else if(document.forms[0].TipDoc1.checked == true || document.forms[0].TipDoc1.checked == 'ok' || document.forms[0].TipDoc0Aux.value == 'CNPJ'){
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'visible';
document.forms[0].TipDoc1.checked = true;
}else{
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'hidden';
}
}
function funMaskCNPJ(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 2 ||
parametro.value.length == 6){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 10){
parametro.value = parametro.value + "/";
}
if(parametro.value.length == 15){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 18){
event.returnValue = false;
return false;
}
}
function funMaskCPF(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 3 ||
parametro.value.length == 7){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 11){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 14){
event.returnValue = false;
return false;
}
}
function funMaskTEL(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 0 ){
parametro.value = parametro.value + "(";
}
if(parametro.value.length == 3){
parametro.value = parametro.value + ")";
}
if(parametro.value.length == 8){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 13){
event.returnValue = false;
return false;
}
}
function noDig(){
return false;
}
function retLogradouro(paginaPai,cep,bairro,tipo,titulo,logradouro){
opener.document.getElementById('P'+paginaPai+'_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_TIPO').value = tipo;
opener.document.getElementById('P'+paginaPai+'_ABR_TIT').value = titulo;
opener.document.getElementById('P'+paginaPai+'_ENDERECO').value = logradouro;
opener.document.getElementById('P'+paginaPai+'_CIDADE').value = 'São Carlos';
this.close();
}
function retContribuinte(paginaPai, cpfCgc, nome, endereco, numero, bairro, cidade, cep, complemento){
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CONTRIBUINTE').value = nome;
opener.document.getElementById('P'+paginaPai+'_CPFCGC_CONTRIBUINTE').value = cpfCgc;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_LOGRADOURO').value = endereco;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_IMOVEL').value = numero;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CIDADE').value = cidade;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_COMPLEMENTO').value = complemento;
opener.document.getElementById('P'+paginaPai+'_INSCRICAO').focus();
window.close();
}
function numerico(e) {
var tecla=(window.event)?event.keyCode:e.which;
if((tecla > 47 && tecla < 58)) return true;
else{
if (tecla == 8 || tecla==0) return true;
else return false;
}
}
function selecionaTodos(obj){
var quantidade = document.forms[0].elements.length;
for(var i=0; i<quantidade; i++){
var nome = document.forms[0].elements[i].id;
if(nome.length >= 3){
if(nome.substr(0,3) == "CHK"){
if(obj.checked){
document.forms[0].elements[i].checked = true;
boletoTributos(document.forms[0].elements[i]);
}else{
document.forms[0].elements[i].checked = false;
boletoTributos(document.forms[0].elements[i]);
}
}
}
}
}
</script>
</div>
</div>
<div align="left" class="t14messages"><span id="APEX_SUCCESS_MESSAGE" data-template-id="3827070525074594095_S" class="apex-page-success u-hidden"></span><span id="APEX_ERROR_MESSAGE" data-template-id="3827070525074594095_E" class="apex-page-error u-hidden"></span> </div>
<div class="regiao_direita">
<table class="regionlayout" summary="" cellpadding="0" border="0" cellspacing="0" align="left" role="presentation"><tr><td valign="top"><span class="apex-grid-nbsp"> ;</span></td><td valign="top"><script>
function queryCep(pCep, functionCallback){
var url = '//webservice.giap.com.br/Cep';
$.ajax({
dataType: 'jsonp',
data: {'cep': pCep},
success: functionCallback,
url: url + '/cepServlet'
});
}
</script><input type="hidden" id="P0_CUNI" name="P0_CUNI" value=""><input type="hidden" id="P0_TIP_INSCRICAO" name="P0_TIP_INSCRICAO" value=""><input type="hidden" id="P0_INSCRICAO" name="P0_INSCRICAO" value=""><input type="hidden" id="P0_CONTRIBUINTE" name="P0_CONTRIBUINTE" value=""><input type="hidden" id="P0_ENDERECO" name="P0_ENDERECO" value=""><input type="hidden" id="P0_BAIRRO" name="P0_BAIRRO" value=""><input type="hidden" id="P0_CIDADE" name="P0_CIDADE" value=""><input type="hidden" id="P0_ESTADO" name="P0_ESTADO" value=""><input type="hidden" id="P0_BOLETO_ANO" name="P0_BOLETO_ANO" value=""><input type="hidden" id="P0_BOLETO_TIP" name="P0_BOLETO_TIP" value=""><input type="hidden" id="P0_BOLETO_LANCTO" name="P0_BOLETO_LANCTO" value=""><input type="hidden" id="P0_BOLETO_GUIA" name="P0_BOLETO_GUIA" value=""><input type="hidden" id="P0_BOLETO_COBRANCA" name="P0_BOLETO_COBRANCA" value=""><input type="hidden" id="P0_BOLETO_DESCONTO" name="P0_BOLETO_DESCONTO" value=""><input type="hidden" id="P0_BOLETO" name="P0_BOLETO" value=""><input type="hidden" id="P0_ACESSO_ITBI" name="P0_ACESSO_ITBI" value="N"><input type="hidden" id="P0_ACESSO_PORTAL" name="P0_ACESSO_PORTAL" value="N"><input type="hidden" id="P0_ACESSO_FIC" name="P0_ACESSO_FIC" value=""><input type="hidden" id="P0_FIC_CAD_EMAIL" name="P0_FIC_CAD_EMAIL" value=""><input type="hidden" id="P0_FIC_CAD_ID" name="P0_FIC_CAD_ID" value=""><input type="hidden" id="P0_CERT_INSCRICAO" name="P0_CERT_INSCRICAO" value=""><input type="hidden" id="P0_TIP_CANAL_CIDADAO" name="P0_TIP_CANAL_CIDADAO" value="O"><input type="hidden" id="P0_OUVIDORIA" name="P0_OUVIDORIA" value="<a href="f?p=231:80:::::P80_TIP_SERVICO:O">
<img src="/pkgsiamun/Salto01/imagem/ouvidoria.png"/>
</a>"><input type="hidden" id="P0_NUM_BOLETO" name="P0_NUM_BOLETO" value=""><input type="hidden" id="P0_NUM_INSCRICAO" name="P0_NUM_INSCRICAO" value=""><input type="hidden" id="P0_ACESSO_CONCURSO" name="P0_ACESSO_CONCURSO" value=""><input type="hidden" id="P0_COD_CONCURSO" name="P0_COD_CONCURSO" value=""><input type="hidden" id="P0_ERRO_CONCURSO" name="P0_ERRO_CONCURSO" value=""><input type="hidden" id="P0_CERT_DEBTO_IMOB" name="P0_CERT_DEBTO_IMOB" value="N"></td></tr></table>
</div>
</div>
<div class="rodape">
<div class="rodape_esq">
Prefeitura Municipal de São Carlos 2010. Todos os direitos reservados
</div>
<!-- <div class="rodape_dir">
<img src="/pkgsiamun/Scarlos/imagem/giap_logo.jpg" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="67,7,157,36" href="http://www.sianet.com.br" />
<area shape="rect" coords="159,7,202,36" href="#" />
</map>
</div>-->
</div>
</div>
</div><!--<table border="0" cellpadding="0" cellspacing="0" summary="" id="t14PageFooter" width="100%">
<tr>
<td id="t14Left" valign="top"><span id="t14UserPrompt">nobody</span><br /></td>
<td id="t14Center" valign="top"><table class="regionlayout" summary="" cellpadding="0" border="0" cellspacing="0" align="left" role="presentation"><tr><td valign="top"><span class="apex-grid-nbsp"> ;</span></td><td valign="top"><script>
function queryCep(pCep, functionCallback){
var url = '//webservice.giap.com.br/Cep';
$.ajax({
dataType: 'jsonp',
data: {'cep': pCep},
success: functionCallback,
url: url + '/cepServlet'
});
}
</script><input type="hidden" id="P0_CUNI" name="P0_CUNI" value=""><input type="hidden" id="P0_TIP_INSCRICAO" name="P0_TIP_INSCRICAO" value=""><input type="hidden" id="P0_INSCRICAO" name="P0_INSCRICAO" value=""><input type="hidden" id="P0_CONTRIBUINTE" name="P0_CONTRIBUINTE" value=""><input type="hidden" id="P0_ENDERECO" name="P0_ENDERECO" value=""><input type="hidden" id="P0_BAIRRO" name="P0_BAIRRO" value=""><input type="hidden" id="P0_CIDADE" name="P0_CIDADE" value=""><input type="hidden" id="P0_ESTADO" name="P0_ESTADO" value=""><input type="hidden" id="P0_BOLETO_ANO" name="P0_BOLETO_ANO" value=""><input type="hidden" id="P0_BOLETO_TIP" name="P0_BOLETO_TIP" value=""><input type="hidden" id="P0_BOLETO_LANCTO" name="P0_BOLETO_LANCTO" value=""><input type="hidden" id="P0_BOLETO_GUIA" name="P0_BOLETO_GUIA" value=""><input type="hidden" id="P0_BOLETO_COBRANCA" name="P0_BOLETO_COBRANCA" value=""><input type="hidden" id="P0_BOLETO_DESCONTO" name="P0_BOLETO_DESCONTO" value=""><input type="hidden" id="P0_BOLETO" name="P0_BOLETO" value=""><input type="hidden" id="P0_ACESSO_ITBI" name="P0_ACESSO_ITBI" value="N"><input type="hidden" id="P0_ACESSO_PORTAL" name="P0_ACESSO_PORTAL" value="N"><input type="hidden" id="P0_ACESSO_FIC" name="P0_ACESSO_FIC" value=""><input type="hidden" id="P0_FIC_CAD_EMAIL" name="P0_FIC_CAD_EMAIL" value=""><input type="hidden" id="P0_FIC_CAD_ID" name="P0_FIC_CAD_ID" value=""><input type="hidden" id="P0_CERT_INSCRICAO" name="P0_CERT_INSCRICAO" value=""><input type="hidden" id="P0_TIP_CANAL_CIDADAO" name="P0_TIP_CANAL_CIDADAO" value="O"><input type="hidden" id="P0_OUVIDORIA" name="P0_OUVIDORIA" value="<a href="f?p=231:80:::::P80_TIP_SERVICO:O">
<img src="/pkgsiamun/Salto01/imagem/ouvidoria.png"/>
</a>"><input type="hidden" id="P0_NUM_BOLETO" name="P0_NUM_BOLETO" value=""><input type="hidden" id="P0_NUM_INSCRICAO" name="P0_NUM_INSCRICAO" value=""><input type="hidden" id="P0_ACESSO_CONCURSO" name="P0_ACESSO_CONCURSO" value=""><input type="hidden" id="P0_COD_CONCURSO" name="P0_COD_CONCURSO" value=""><input type="hidden" id="P0_ERRO_CONCURSO" name="P0_ERRO_CONCURSO" value=""><input type="hidden" id="P0_CERT_DEBTO_IMOB" name="P0_CERT_DEBTO_IMOB" value="N"></td></tr></table></td>
<td id="t14Right" valign="top"><span id="t14Customize"></span><br /></td>
</tr>
</table> -->
<br class="t14Break"/>
<input type="hidden" id="pPageFormRegionChecksums" value="[]">
<input type="hidden" id="pPageItemsRowVersion" value="" /><input type="hidden" id="pPageItemsProtected" value="f2hzpw3yPclBrSvFZJVC9Q" /></form>
<script type="text/javascript">
apex.da.initDaEventList = function(){
apex.da.gEventList = [
{"triggeringElementType":"BUTTON","triggeringButtonId":"B3828810210858901008","bindType":"bind","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P0_MSG_CONFIRMACAO",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"bbnMgou7MkIu9h48AMb3_ohdo1YAWn5xqPvGA7tUeCU","attribute01":"SQL_STATEMENT","attribute04":"#P0_TIPO_INSCRICAO,#P0_INSC_LATERAL,#P0_CERTIDAO,#P0_ANO_CERTIDAO","attribute09":"N","attribute11":"sync","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function (){ if($("#P0_MSG_CONFIRMACAO").html() == null || $("#P0_MSG_CONFIRMACAO").html() == ''){
var left = (screen.width - 600) / 2;
var top = (screen.height - 300) / 2;
window.open('f?p=231:3:10479168590202::::P3_NUM_CERTIDAO,P3_ANO_CERTIDAO,P3_INSC_IMOB:'+$("#P0_CERTIDAO").val()+','+$("#P0_ANO_CERTIDAO").val()+','+$("#P0_INSC_LATERAL").val(),'JConfirmacao','width=600,height=300,left='+left+',top='+top+',resizable=no,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
},"action":"NATIVE_JAVASCRIPT_CODE"}]},
{"triggeringElementType":"BUTTON","triggeringButtonId":"B3828982709116875062","bindType":"bind","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P0_MSG_CONSULTA",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"KWu5CPDmz2uoTgAhr4vRMPGy_2-RJutUmYkrbInv88w","attribute01":"SQL_STATEMENT","attribute04":"#P0_PROCESSO_NUM,#P0_PROCESSO_ANO","attribute09":"N","attribute11":"sync","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function (){ if($("#P0_MSG_CONSULTA").html() == null || $("#P0_MSG_CONSULTA").html() == ''){
var left = (screen.width - 750) / 2;
var top = (screen.height - 450) / 2;
window.open('https://scarlos.giap.com.br/apex/scarlos/f?p=808:146:10479168590202:::146:P146_PROCESSO_NUM,P146_PROCESSO_ANO,P146_INSTITUICAO:'+$("#P0_PROCESSO_NUM").val()+','+$("#P0_PROCESSO_ANO").val()+','+$("#P0_PROCESSO_INST").val(),'JConfirmacao','width=750,height=450,left='+left+',top='+top+',resizable=no,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
},"action":"NATIVE_JAVASCRIPT_CODE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"cnP8dVlPxeZlBYKO6WmWOsyY-NckBxVT4pLZLLMCbCI","attribute01":"#P0_PROCESSO_NUM,#P0_PROCESSO_ANO,#P0_CUNI","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_OUVIDORIA","bindType":"live","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"UCkCWM66QnC3_bGL6zvMfUfR6TuPdQz5615HdxcJ42c","attribute01":"#P0_TIP_CANAL_CIDADAO","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_TIPO_INSCRICAO","conditionElement":"P0_TIPO_INSCRICAO","triggeringConditionType":"EQUALS","triggeringExpression":"C","bindType":"bind","bindEventType":"change","anyActionsFireOnInit":true,actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"ITEM","affectedElements":"P0_INSC_LATERAL",javascriptFunction:apex.da.hide,"attribute01":"N","action":"NATIVE_HIDE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"ITEM","affectedElements":"P0_INSC_LATERAL",javascriptFunction:apex.da.show,"attribute01":"N","action":"NATIVE_SHOW"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"JQUERY_SELECTOR","affectedElements":"#labelInscLat",javascriptFunction:apex.da.hide,"attribute01":"N","action":"NATIVE_HIDE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"JQUERY_SELECTOR","affectedElements":"#labelInscLat",javascriptFunction:apex.da.show,"attribute01":"N","action":"NATIVE_SHOW"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_CERT_INSCRICAO","conditionElement":"P0_TIPO_INSCRICAO","bindType":"bind","bindEventType":"change","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"HLipuCg8ybX5BG5DuEsZY1XVrgon56clZYpbkC9wGxs","attribute01":"#P0_INSC,#P0_CERT_INSCRICAO,#P0_CONTRIBUINTE,#P0_CONTR","attribute02":"#P0_CONTRIBUINTE,#P0_CONTR","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]}];
}
</script>
<script type="text/javascript">
apex.jQuery( function() {
apex.page.init( this, function() {
apex.jQuery.when.apply( apex.jQuery, apex.page.loadingDeferreds ).done(function() {
try {
(function(){apex.da.initDaEventList();})();
(function(){apex.da.init();})();
} finally {
apex.event.trigger(apex.gPageContext$,'apexreadyend');
}
});
});
});</script>
</body>]]>
|
54
| <![CDATA[<div class="fonte1" style="background:url('/pkgsiamun/Scarlos/imagem/bg_login.jpg') no-repeat;">
; ; ; ; ; ;Login
</div>]]>
|
61
| <![CDATA[<div class="fonte1" style="background:url('/pkgsiamun/Scarlos/imagem/bg_home.jpg') no-repeat;">
; ; ; ; ; ;Home
</div>]]>
|
76
| <![CDATA[<div style="width:678px; text-align:left; border:1px solid #fff;">
<table class="t14BorderlessRegion" id="R167587021006676273" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td class="t14RegionHeader"> ;</td></tr>
<tr>
<td class="t14ButtonHolder"> ; ; ;</td>
</tr>
<tr>
<td class="t14RegionBody"><style>
a{
border:0px solid black;
line-height:normal;
float:none;
}
a hover{
border:0px solid #999999;
line-height:normal;
float:none;
}
</style>
<a style="color: #000;" href="f?p=231:12:10479168590202::::P0_CERT_INSCRICAO:I">
<div style="text-align:center;margin-left: 290px;">
</div>
</a><img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/></td>
</tr>
</table><table class="t14BorderlessRegion" id="R4157415412410183216" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td class="t14RegionHeader">Menu</td></tr>
<tr>
<td class="t14ButtonHolder"> ; ; ;</td>
</tr>
<tr>
<td class="t14RegionBody"><table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td align="left">
<a href="javascript:apex.submit(%7Brequest:'MOBILIARIO'%7D);" id="B4157469322553136886" title="Mobiliario"><img src="/pkgsiamun/Scarlos/imagem/icone-mobiliario.jpg" alt="Mobiliario" border="#" /></a></td><td align="right">
<a href="javascript:apex.submit(%7Brequest:'IMOBILIARIO'%7D);" id="B4157468223330118147" title="Imobiliario"><img src="/pkgsiamun/Scarlos/imagem/icone-imobiliario.jpg" alt="Imobiliario" border="#" style="margin-left:228px;" /></a></td></tr></table><img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/></td>
</tr>
</table><script>
function redirecionaPagina(servico){
if(servico == '10') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/sim-online-inicial.html';
if(servico == '20') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/espaco-empresarial.html';
if(servico == '30') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/outros-servicos.html';
if(servico == '40') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/servicos-de-a-a-z-sim-online.html';
}
function abreBoleto(session,page){
if(document.getElementById("P0_BOLETO").value == null || document.getElementById("P0_BOLETO").value == ''){
if(document.getElementById("P0_BOLETO_ANO").value != null && document.getElementById("P0_BOLETO_ANO").value != ''){
chamaPagina('f?p=231:'+page+':'+session+'::',860,750,'BO');
}
}
}
function boletoTributos(obj){
var valor = document.getElementById("P0_BOLETO").value;
if(obj.checked){
document.getElementById("P0_BOLETO").value = valor + obj.value;
}else{
if(valor.indexOf(obj.value) > -1){
document.getElementById("P0_BOLETO").value = valor.replace(obj.value,'');
}
}
}
function chamaPagina(link, largura, altura, janela){
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=yes,toolbar=no,location=no,directories=no,scrollbars=yes');
}
function confCertidao(largura, altura, janela, session){
var link = 'f?p=231:3:::::P3_INSC_IMOB,P3_NUM_CERTIDAO,P3_ANO_CERTIDAO:';
if(document.getElementById("P0_INSC_LATERAL").value == "" || document.getElementById("P0_CERTIDAO").value == "" || document.getElementById("P0_ANO_CERTIDAO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (Inscrição , Certidão, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_INSC_LATERAL").value +','+ document.getElementById("P0_CERTIDAO").value +','+document.getElementById("P0_ANO_CERTIDAO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confProcesso(largura, altura, janela, session){
var link = 'f?p=231:5:::::P5_PROCESSO_NUM,P5_PROCESSO_ANO:';
if(document.getElementById("P0_PROCESSO_NUM").value == "" || document.getElementById("P0_PROCESSO_ANO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (N° Processo, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_PROCESSO_NUM").value +','+ document.getElementById("P0_PROCESSO_ANO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confAlvara(largura, altura, janela, session){
var link = 'f?p=231:56:::NO:56:P56_COD_AUTENTICIDADE:';
if(document.getElementById("P0_COD_SEGURANCA").value == "" ){
alert("Caro (a) usuário (a) por favor informar Codigo de Autenticidade");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_COD_SEGURANCA").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function mascaras(src, mask){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if(texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
function Mascara(o,f){
v_obj=o
v_fun=f
setTimeout("execmascara()",1)
}
function execmascara(){
v_obj.value=v_fun(v_obj.value)
}
function leech(v){
v=v.replace(/o/gi,"0")
v=v.replace(/i/gi,"1")
v=v.replace(/z/gi,"2")
v=v.replace(/e/gi,"3")
v=v.replace(/a/gi,"4")
v=v.replace(/s/gi,"5")
v=v.replace(/t/gi,"7")
return v
}
function Telefone(v){
v=v.replace(/\D/g,"")
v=v.replace(/^(\d\d)(\d)/g,"($1) $2")
v=v.replace(/(\d{4})(\d)/,"$1-$2")
return v
}
function mascaraInscricao(src, mask, idPagina){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO") != null){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO").value == 'I'){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if (texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
}
}
function CentralizaPopup(width,height){
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
return 'width='+width+',height='+height+',left='+left+',top='+top;
}
function soNumeros(evt){
var key_code = evt.keyCode ? evt.keyCode : evt.charCode ? evt.charCode : evt.which ? evt.which : void 0;
if (key_code == 8 || key_code == 9 || key_code == 13 || key_code == 27){
return true;
}else if ((key_code >= 48) && (key_code <= 57)){
return true
}
return false;
}
function formataValor(objTextBox, SeparadorMilesimo, SeparadorDecimal, e){
var sep = 0;
var key = '';
var i = j = 0;
var len = len2 = 0;
var strCheck = '0123456789';
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true;
if ((whichCode == 13) || (whichCode == 8) || (whichCode == 46) || (whichCode == 37) || (whichCode == 39)){
return true;
}
if (whichCode == 9){
return true;
}
key = String.fromCharCode(whichCode); // Valor para o código da Chave
if (strCheck.indexOf(key) == -1) return false; // Chave inválida
len = objTextBox.value.length;
for(i = 0; i < len; i++)
if ((objTextBox.value.charAt(i) != '0') && (objTextBox.value.charAt(i) != SeparadorDecimal)) break;
aux = '';
for(; i < len; i++)
if (strCheck.indexOf(objTextBox.value.charAt(i))!=-1) aux += objTextBox.value.charAt(i);
aux += key;
len = aux.length;
if (len == 0) objTextBox.value = '';
if (len == 1) objTextBox.value = '0'+ SeparadorDecimal + '0' + aux;
if (len == 2) objTextBox.value = '0'+ SeparadorDecimal + aux;
if (len > 2) {
aux2 = '';
for (j = 0, i = len - 3; i >= 0; i--) {
if (j == 3) {
aux2 += SeparadorMilesimo;
j = 0;
}
aux2 += aux.charAt(i);
j++;
}
objTextBox.value = '';
len2 = aux2.length;
for (i = len2 - 1; i >= 0; i--)
objTextBox.value += aux2.charAt(i);
objTextBox.value += SeparadorDecimal + aux.substr(len - 2, len);
}
return false;
}
function CleanString( number ){
var newnumber = "" ;
for ( i = 0 ; i <= number.length ; i++ ) {
if (! isNaN( number.charAt( i )) ) newnumber = newnumber + number.charAt( i ) ;
}
return newnumber ;
}
function CleanSpaces(_s){
var _sSplit = " ";
var _a = _s.split(_sSplit);
var _str = "";
for (var i=0; i < _a.length; i++){
var _b = _a[i];
if(_b.length != 0){
_str += _b;
if(i != _a.length - 1) _str += " ";
}
}
return _str;
}
function validaCPF(umCPF) {
var mask = new String("999.999.999-99");
var temp = new String(umCPF.value);
var cpf = new String();
var i;
if(temp.length == 0){
return false;
}
// Verifica o tamanho
if ( temp.length != 11 && temp.length != 14 ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Verifica se foi digitado com a máscara
if ( temp.length != 11 )
for (i = 0; i < mask.length; i++)
if( mask.charAt(i) != "9" && mask.charAt(i) != temp.charAt(i) ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Cria uma nova string, somente com os números do CPF
for (i = 0; i < temp.length; i++)
if( !isNaN( temp.charAt(i) ) && temp.charAt(i) != " " )
cpf += temp.charAt(i);
if(cpf.length != 11){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Vê se os números não são todos iguais (isso é CPF válido!)
var ch = cpf.charAt(0);
for(i = 1; i < cpf.length; i++ ) {
if(cpf.charAt(i) != ch ) break;
}
if(i == cpf.length ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Valida o CPF
var total = 0, soma = 0;
for (i = 0; i < 9; i++){
total += cpf.charAt(i) * (10 - i);
soma += cpf.charAt(i) * 1;
}
var dv1;
if(total % 11 > 1){
dv1 = 11 - total % 11;
}else{
dv1 = 0;
}
var dv2;
total += soma + 2 * dv1;
if (total % 11 > 1){
dv2 = 11 - total % 11;
}else{
dv2 = 0;
}
if(dv1 == cpf.charAt(9) && dv2 == cpf.charAt(10)) {
return true;
}else{
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
}
function isCNPJ(s){
var r = s.value ;
var iError = 0 ;
r = CleanSpaces(r);
var nCGC_ = CleanString( r ) ;
if ( (r * 1) == 0 ) iError++ ;
if ( nCGC_.length == 15 && nCGC_.charAt(0) == "0") nCGC_ = nCGC_.substring(1 , nCGC_.length) ;
if ( nCGC_.length != 14 ) iError++ ;
var nCGC = new Array() ;
for ( i = 0 ; i < 15 ; i++ ) {
nCGC[i] = nCGC_.charAt(i) ;
}
iDV1 = ( nCGC[0] * 5 + nCGC[1] * 4 + nCGC[2] * 3 + nCGC[3] * 2 + nCGC[4] * 9 + nCGC[5] * 8 + nCGC[6] * 7 + nCGC[7] * 6 + nCGC[8] * 5 + nCGC[9] * 4 + nCGC[10] * 3 + nCGC[11] * 2 ) % 11 ;
if(iDV1 == 1 || iDV1 == 0 ) { iDV1 = 0 }
else { iDV1 = 11 - iDV1 }
if(iDV1 != nCGC[12] ) iError++ ;
iDV2 = ( nCGC[0] * 6 + nCGC[1] * 5 + nCGC[2] * 4 + nCGC[3] * 3 + nCGC[4] * 2 + nCGC[5] * 9 + nCGC[6] * 8 + nCGC[7] * 7 + nCGC[8] * 6 + nCGC[9] * 5 + nCGC[10] * 4 + nCGC[11] * 3 + nCGC[12] * 2) % 11 ;
if ( iDV2 == 1 || iDV2 == 0 ) { iDV2 = 0 }
else { iDV2 = 11 - iDV2 }
if ( iDV2 != nCGC[13] ) iError++ ;
if(s.value != ""){
if(iError > 0 ){
alert ( "O CNPJ está incorreto. Por favor, verifique.\n" ) ;
s.focus();
return false ;
}else return true ;
}
}
function ValidaEmail(obj){
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))){
alert('Email incorreto');
obj.value="";
obj.focus();
}
}
function FormataData(Campo, teclapres){
var tecla = teclapres.keyCode;
var vr = new String(Campo.value);
vr = vr.replace("/", "");
vr = vr.replace("/", "");
tam = vr.length + 1;
if (tecla != 9 && tecla != 8){
if (tam > 2 && tam < 5)
Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, tam);
if (tam >= 5 && tam <=10)
Campo.value = vr.substr(0,2) + '/' + vr.substr(2,2) + '/' + vr.substr(4,4);
}
}
function funExibeCampo(valor){
if(valor == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].itbiNumCgc.value = '';
document.forms[0].TipDoc1.checked = false;
}else{
Div2.style.visibility = 'visible';
Div1.style.visibility = 'hidden';
document.forms[0].itbiNumCpf.value = '';
document.forms[0].TipDoc0.checked = false;
}
}
function funInicializaDIV(){
if(document.forms[0].TipDoc0.checked == true || document.forms[0].TipDoc0.value == 'ok' || document.forms[0].TipDoc0Aux.value == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].TipDoc0.checked = true;
}else if(document.forms[0].TipDoc1.checked == true || document.forms[0].TipDoc1.checked == 'ok' || document.forms[0].TipDoc0Aux.value == 'CNPJ'){
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'visible';
document.forms[0].TipDoc1.checked = true;
}else{
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'hidden';
}
}
function funMaskCNPJ(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 2 ||
parametro.value.length == 6){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 10){
parametro.value = parametro.value + "/";
}
if(parametro.value.length == 15){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 18){
event.returnValue = false;
return false;
}
}
function funMaskCPF(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 3 ||
parametro.value.length == 7){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 11){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 14){
event.returnValue = false;
return false;
}
}
function funMaskTEL(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 0 ){
parametro.value = parametro.value + "(";
}
if(parametro.value.length == 3){
parametro.value = parametro.value + ")";
}
if(parametro.value.length == 8){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 13){
event.returnValue = false;
return false;
}
}
function noDig(){
return false;
}
function retLogradouro(paginaPai,cep,bairro,tipo,titulo,logradouro){
opener.document.getElementById('P'+paginaPai+'_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_TIPO').value = tipo;
opener.document.getElementById('P'+paginaPai+'_ABR_TIT').value = titulo;
opener.document.getElementById('P'+paginaPai+'_ENDERECO').value = logradouro;
opener.document.getElementById('P'+paginaPai+'_CIDADE').value = 'São Carlos';
this.close();
}
function retContribuinte(paginaPai, cpfCgc, nome, endereco, numero, bairro, cidade, cep, complemento){
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CONTRIBUINTE').value = nome;
opener.document.getElementById('P'+paginaPai+'_CPFCGC_CONTRIBUINTE').value = cpfCgc;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_LOGRADOURO').value = endereco;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_IMOVEL').value = numero;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CIDADE').value = cidade;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_COMPLEMENTO').value = complemento;
opener.document.getElementById('P'+paginaPai+'_INSCRICAO').focus();
window.close();
}
function numerico(e) {
var tecla=(window.event)?event.keyCode:e.which;
if((tecla > 47 && tecla < 58)) return true;
else{
if (tecla == 8 || tecla==0) return true;
else return false;
}
}
function selecionaTodos(obj){
var quantidade = document.forms[0].elements.length;
for(var i=0; i<quantidade; i++){
var nome = document.forms[0].elements[i].id;
if(nome.length >= 3){
if(nome.substr(0,3) == "CHK"){
if(obj.checked){
document.forms[0].elements[i].checked = true;
boletoTributos(document.forms[0].elements[i]);
}else{
document.forms[0].elements[i].checked = false;
boletoTributos(document.forms[0].elements[i]);
}
}
}
}
}
</script>
</div>]]>
|
96
| <![CDATA[<a style="color: #000;" href="f?p=231:12:10479168590202::::P0_CERT_INSCRICAO:I">
<div style="text-align:center;margin-left: 290px;">
</div>
</a>]]>
|
97
| <![CDATA[<div style="text-align:center;margin-left: 290px;">
</div>]]>
|
100
| <![CDATA[<img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/>]]>
|
110
| <![CDATA[<img src="/pkgsiamun/Scarlos/imagem/icone-imobiliario.jpg" alt="Imobiliario" border="#" style="margin-left:228px;" />]]>
|
110
| <![CDATA[<img src="/i/themes/theme_14/1px_trans.gif" height="1" width="600" style="display:block" alt=""/>]]>
|
83
| <![CDATA[<style>
a{
border:0px solid black;
line-height:normal;
float:none;
}
a hover{
border:0px solid #999999;
line-height:normal;
float:none;
}
</style>]]>
|
19
| <![CDATA[<script>
var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
</script>]]>
|
37
| <![CDATA[<script>
function setVariavel(valor,variavel){
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=SET_SESSION',$v('pFlowStepId'));
get.add('P1_VALOR',valor);
get.add('P1_VARIAVEL',variavel);
gReturn = get.get();
get = null;
}
</script>]]>
|
112
| <![CDATA[<script>
function redirecionaPagina(servico){
if(servico == '10') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/sim-online-inicial.html';
if(servico == '20') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/espaco-empresarial.html';
if(servico == '30') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/outros-servicos.html';
if(servico == '40') window.location.href = 'http://www.saocarlos.sp.gov.br/index.php/servicos-de-a-a-z-sim-online.html';
}
function abreBoleto(session,page){
if(document.getElementById("P0_BOLETO").value == null || document.getElementById("P0_BOLETO").value == ''){
if(document.getElementById("P0_BOLETO_ANO").value != null && document.getElementById("P0_BOLETO_ANO").value != ''){
chamaPagina('f?p=231:'+page+':'+session+'::',860,750,'BO');
}
}
}
function boletoTributos(obj){
var valor = document.getElementById("P0_BOLETO").value;
if(obj.checked){
document.getElementById("P0_BOLETO").value = valor + obj.value;
}else{
if(valor.indexOf(obj.value) > -1){
document.getElementById("P0_BOLETO").value = valor.replace(obj.value,'');
}
}
}
function chamaPagina(link, largura, altura, janela){
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=yes,toolbar=no,location=no,directories=no,scrollbars=yes');
}
function confCertidao(largura, altura, janela, session){
var link = 'f?p=231:3:::::P3_INSC_IMOB,P3_NUM_CERTIDAO,P3_ANO_CERTIDAO:';
if(document.getElementById("P0_INSC_LATERAL").value == "" || document.getElementById("P0_CERTIDAO").value == "" || document.getElementById("P0_ANO_CERTIDAO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (Inscrição , Certidão, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_INSC_LATERAL").value +','+ document.getElementById("P0_CERTIDAO").value +','+document.getElementById("P0_ANO_CERTIDAO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confProcesso(largura, altura, janela, session){
var link = 'f?p=231:5:::::P5_PROCESSO_NUM,P5_PROCESSO_ANO:';
if(document.getElementById("P0_PROCESSO_NUM").value == "" || document.getElementById("P0_PROCESSO_ANO").value == ""){
alert("Caro (a) usuário (a) por favor preencher todos os campos: (N° Processo, Ano).");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_PROCESSO_NUM").value +','+ document.getElementById("P0_PROCESSO_ANO").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function confAlvara(largura, altura, janela, session){
var link = 'f?p=231:56:::NO:56:P56_COD_AUTENTICIDADE:';
if(document.getElementById("P0_COD_SEGURANCA").value == "" ){
alert("Caro (a) usuário (a) por favor informar Codigo de Autenticidade");
}else{
var left = (screen.width - largura) / 2;
var top = (screen.height - altura) / 2;
link = link + document.getElementById("P0_COD_SEGURANCA").value;
window.open(link,'J'+janela,'width='+largura+',height='+altura+',left='+left+',top='+top+',resizable=yes,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
}
function mascaras(src, mask){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if(texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
function Mascara(o,f){
v_obj=o
v_fun=f
setTimeout("execmascara()",1)
}
function execmascara(){
v_obj.value=v_fun(v_obj.value)
}
function leech(v){
v=v.replace(/o/gi,"0")
v=v.replace(/i/gi,"1")
v=v.replace(/z/gi,"2")
v=v.replace(/e/gi,"3")
v=v.replace(/a/gi,"4")
v=v.replace(/s/gi,"5")
v=v.replace(/t/gi,"7")
return v
}
function Telefone(v){
v=v.replace(/\D/g,"")
v=v.replace(/^(\d\d)(\d)/g,"($1) $2")
v=v.replace(/(\d{4})(\d)/,"$1-$2")
return v
}
function mascaraInscricao(src, mask, idPagina){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO") != null){
if(document.getElementById("P"+idPagina+"_TIPO_INSCRICAO").value == 'I'){
var i = src.value.length;
var saida = mask.substring(0,1);
var texto = mask.substring(i)
if (texto.substring(0,1) != saida){
src.value += texto.substring(0,1);
}
}
}
}
function CentralizaPopup(width,height){
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
return 'width='+width+',height='+height+',left='+left+',top='+top;
}
function soNumeros(evt){
var key_code = evt.keyCode ? evt.keyCode : evt.charCode ? evt.charCode : evt.which ? evt.which : void 0;
if (key_code == 8 || key_code == 9 || key_code == 13 || key_code == 27){
return true;
}else if ((key_code >= 48) && (key_code <= 57)){
return true
}
return false;
}
function formataValor(objTextBox, SeparadorMilesimo, SeparadorDecimal, e){
var sep = 0;
var key = '';
var i = j = 0;
var len = len2 = 0;
var strCheck = '0123456789';
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true;
if ((whichCode == 13) || (whichCode == 8) || (whichCode == 46) || (whichCode == 37) || (whichCode == 39)){
return true;
}
if (whichCode == 9){
return true;
}
key = String.fromCharCode(whichCode); // Valor para o código da Chave
if (strCheck.indexOf(key) == -1) return false; // Chave inválida
len = objTextBox.value.length;
for(i = 0; i < len; i++)
if ((objTextBox.value.charAt(i) != '0') && (objTextBox.value.charAt(i) != SeparadorDecimal)) break;
aux = '';
for(; i < len; i++)
if (strCheck.indexOf(objTextBox.value.charAt(i))!=-1) aux += objTextBox.value.charAt(i);
aux += key;
len = aux.length;
if (len == 0) objTextBox.value = '';
if (len == 1) objTextBox.value = '0'+ SeparadorDecimal + '0' + aux;
if (len == 2) objTextBox.value = '0'+ SeparadorDecimal + aux;
if (len > 2) {
aux2 = '';
for (j = 0, i = len - 3; i >= 0; i--) {
if (j == 3) {
aux2 += SeparadorMilesimo;
j = 0;
}
aux2 += aux.charAt(i);
j++;
}
objTextBox.value = '';
len2 = aux2.length;
for (i = len2 - 1; i >= 0; i--)
objTextBox.value += aux2.charAt(i);
objTextBox.value += SeparadorDecimal + aux.substr(len - 2, len);
}
return false;
}
function CleanString( number ){
var newnumber = "" ;
for ( i = 0 ; i <= number.length ; i++ ) {
if (! isNaN( number.charAt( i )) ) newnumber = newnumber + number.charAt( i ) ;
}
return newnumber ;
}
function CleanSpaces(_s){
var _sSplit = " ";
var _a = _s.split(_sSplit);
var _str = "";
for (var i=0; i < _a.length; i++){
var _b = _a[i];
if(_b.length != 0){
_str += _b;
if(i != _a.length - 1) _str += " ";
}
}
return _str;
}
function validaCPF(umCPF) {
var mask = new String("999.999.999-99");
var temp = new String(umCPF.value);
var cpf = new String();
var i;
if(temp.length == 0){
return false;
}
// Verifica o tamanho
if ( temp.length != 11 && temp.length != 14 ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Verifica se foi digitado com a máscara
if ( temp.length != 11 )
for (i = 0; i < mask.length; i++)
if( mask.charAt(i) != "9" && mask.charAt(i) != temp.charAt(i) ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Cria uma nova string, somente com os números do CPF
for (i = 0; i < temp.length; i++)
if( !isNaN( temp.charAt(i) ) && temp.charAt(i) != " " )
cpf += temp.charAt(i);
if(cpf.length != 11){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Vê se os números não são todos iguais (isso é CPF válido!)
var ch = cpf.charAt(0);
for(i = 1; i < cpf.length; i++ ) {
if(cpf.charAt(i) != ch ) break;
}
if(i == cpf.length ){
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
// Valida o CPF
var total = 0, soma = 0;
for (i = 0; i < 9; i++){
total += cpf.charAt(i) * (10 - i);
soma += cpf.charAt(i) * 1;
}
var dv1;
if(total % 11 > 1){
dv1 = 11 - total % 11;
}else{
dv1 = 0;
}
var dv2;
total += soma + 2 * dv1;
if (total % 11 > 1){
dv2 = 11 - total % 11;
}else{
dv2 = 0;
}
if(dv1 == cpf.charAt(9) && dv2 == cpf.charAt(10)) {
return true;
}else{
alert("Número de CPF inválido. Por favor, digite novamente.");
umCPF.focus();
return false;
}
}
function isCNPJ(s){
var r = s.value ;
var iError = 0 ;
r = CleanSpaces(r);
var nCGC_ = CleanString( r ) ;
if ( (r * 1) == 0 ) iError++ ;
if ( nCGC_.length == 15 && nCGC_.charAt(0) == "0") nCGC_ = nCGC_.substring(1 , nCGC_.length) ;
if ( nCGC_.length != 14 ) iError++ ;
var nCGC = new Array() ;
for ( i = 0 ; i < 15 ; i++ ) {
nCGC[i] = nCGC_.charAt(i) ;
}
iDV1 = ( nCGC[0] * 5 + nCGC[1] * 4 + nCGC[2] * 3 + nCGC[3] * 2 + nCGC[4] * 9 + nCGC[5] * 8 + nCGC[6] * 7 + nCGC[7] * 6 + nCGC[8] * 5 + nCGC[9] * 4 + nCGC[10] * 3 + nCGC[11] * 2 ) % 11 ;
if(iDV1 == 1 || iDV1 == 0 ) { iDV1 = 0 }
else { iDV1 = 11 - iDV1 }
if(iDV1 != nCGC[12] ) iError++ ;
iDV2 = ( nCGC[0] * 6 + nCGC[1] * 5 + nCGC[2] * 4 + nCGC[3] * 3 + nCGC[4] * 2 + nCGC[5] * 9 + nCGC[6] * 8 + nCGC[7] * 7 + nCGC[8] * 6 + nCGC[9] * 5 + nCGC[10] * 4 + nCGC[11] * 3 + nCGC[12] * 2) % 11 ;
if ( iDV2 == 1 || iDV2 == 0 ) { iDV2 = 0 }
else { iDV2 = 11 - iDV2 }
if ( iDV2 != nCGC[13] ) iError++ ;
if(s.value != ""){
if(iError > 0 ){
alert ( "O CNPJ está incorreto. Por favor, verifique.\n" ) ;
s.focus();
return false ;
}else return true ;
}
}
function ValidaEmail(obj){
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))){
alert('Email incorreto');
obj.value="";
obj.focus();
}
}
function FormataData(Campo, teclapres){
var tecla = teclapres.keyCode;
var vr = new String(Campo.value);
vr = vr.replace("/", "");
vr = vr.replace("/", "");
tam = vr.length + 1;
if (tecla != 9 && tecla != 8){
if (tam > 2 && tam < 5)
Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, tam);
if (tam >= 5 && tam <=10)
Campo.value = vr.substr(0,2) + '/' + vr.substr(2,2) + '/' + vr.substr(4,4);
}
}
function funExibeCampo(valor){
if(valor == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].itbiNumCgc.value = '';
document.forms[0].TipDoc1.checked = false;
}else{
Div2.style.visibility = 'visible';
Div1.style.visibility = 'hidden';
document.forms[0].itbiNumCpf.value = '';
document.forms[0].TipDoc0.checked = false;
}
}
function funInicializaDIV(){
if(document.forms[0].TipDoc0.checked == true || document.forms[0].TipDoc0.value == 'ok' || document.forms[0].TipDoc0Aux.value == 'CPF'){
Div1.style.visibility = 'visible';
Div2.style.visibility = 'hidden';
document.forms[0].TipDoc0.checked = true;
}else if(document.forms[0].TipDoc1.checked == true || document.forms[0].TipDoc1.checked == 'ok' || document.forms[0].TipDoc0Aux.value == 'CNPJ'){
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'visible';
document.forms[0].TipDoc1.checked = true;
}else{
Div1.style.visibility = 'hidden';
Div2.style.visibility = 'hidden';
}
}
function funMaskCNPJ(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 2 ||
parametro.value.length == 6){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 10){
parametro.value = parametro.value + "/";
}
if(parametro.value.length == 15){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 18){
event.returnValue = false;
return false;
}
}
function funMaskCPF(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 3 ||
parametro.value.length == 7){
parametro.value = parametro.value + ".";
}
if(parametro.value.length == 11){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 14){
event.returnValue = false;
return false;
}
}
function funMaskTEL(parametro,event){
if(navigator.appName == 'Microsoft Internet Explorer'){
Tecla = event.keyCode;
}else{
Tecla = event.which;
}
if(48 > Tecla || Tecla > 59){
event.returnValue = false;
return false;
}
if(parametro.value.length == 0 ){
parametro.value = parametro.value + "(";
}
if(parametro.value.length == 3){
parametro.value = parametro.value + ")";
}
if(parametro.value.length == 8){
parametro.value = parametro.value + "-";
}
if(parametro.value.length == 13){
event.returnValue = false;
return false;
}
}
function noDig(){
return false;
}
function retLogradouro(paginaPai,cep,bairro,tipo,titulo,logradouro){
opener.document.getElementById('P'+paginaPai+'_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_TIPO').value = tipo;
opener.document.getElementById('P'+paginaPai+'_ABR_TIT').value = titulo;
opener.document.getElementById('P'+paginaPai+'_ENDERECO').value = logradouro;
opener.document.getElementById('P'+paginaPai+'_CIDADE').value = 'São Carlos';
this.close();
}
function retContribuinte(paginaPai, cpfCgc, nome, endereco, numero, bairro, cidade, cep, complemento){
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CONTRIBUINTE').value = nome;
opener.document.getElementById('P'+paginaPai+'_CPFCGC_CONTRIBUINTE').value = cpfCgc;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_LOGRADOURO').value = endereco;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_IMOVEL').value = numero;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_BAIRRO').value = bairro;
opener.document.getElementById('P'+paginaPai+'_ITBI_NOM_CIDADE').value = cidade;
opener.document.getElementById('P'+paginaPai+'_ITBI_NUM_CEP').value = cep;
opener.document.getElementById('P'+paginaPai+'_ITBI_DES_COMPLEMENTO').value = complemento;
opener.document.getElementById('P'+paginaPai+'_INSCRICAO').focus();
window.close();
}
function numerico(e) {
var tecla=(window.event)?event.keyCode:e.which;
if((tecla > 47 && tecla < 58)) return true;
else{
if (tecla == 8 || tecla==0) return true;
else return false;
}
}
function selecionaTodos(obj){
var quantidade = document.forms[0].elements.length;
for(var i=0; i<quantidade; i++){
var nome = document.forms[0].elements[i].id;
if(nome.length >= 3){
if(nome.substr(0,3) == "CHK"){
if(obj.checked){
document.forms[0].elements[i].checked = true;
boletoTributos(document.forms[0].elements[i]);
}else{
document.forms[0].elements[i].checked = false;
boletoTributos(document.forms[0].elements[i]);
}
}
}
}
}
</script>]]>
|
605
| <![CDATA[<script>
function queryCep(pCep, functionCallback){
var url = '//webservice.giap.com.br/Cep';
$.ajax({
dataType: 'jsonp',
data: {'cep': pCep},
success: functionCallback,
url: url + '/cepServlet'
});
}
</script>]]>
|
660
| <![CDATA[<script type="text/javascript">
apex.da.initDaEventList = function(){
apex.da.gEventList = [
{"triggeringElementType":"BUTTON","triggeringButtonId":"B3828810210858901008","bindType":"bind","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P0_MSG_CONFIRMACAO",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"bbnMgou7MkIu9h48AMb3_ohdo1YAWn5xqPvGA7tUeCU","attribute01":"SQL_STATEMENT","attribute04":"#P0_TIPO_INSCRICAO,#P0_INSC_LATERAL,#P0_CERTIDAO,#P0_ANO_CERTIDAO","attribute09":"N","attribute11":"sync","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function (){ if($("#P0_MSG_CONFIRMACAO").html() == null || $("#P0_MSG_CONFIRMACAO").html() == ''){
var left = (screen.width - 600) / 2;
var top = (screen.height - 300) / 2;
window.open('f?p=231:3:10479168590202::::P3_NUM_CERTIDAO,P3_ANO_CERTIDAO,P3_INSC_IMOB:'+$("#P0_CERTIDAO").val()+','+$("#P0_ANO_CERTIDAO").val()+','+$("#P0_INSC_LATERAL").val(),'JConfirmacao','width=600,height=300,left='+left+',top='+top+',resizable=no,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
},"action":"NATIVE_JAVASCRIPT_CODE"}]},
{"triggeringElementType":"BUTTON","triggeringButtonId":"B3828982709116875062","bindType":"bind","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P0_MSG_CONSULTA",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"KWu5CPDmz2uoTgAhr4vRMPGy_2-RJutUmYkrbInv88w","attribute01":"SQL_STATEMENT","attribute04":"#P0_PROCESSO_NUM,#P0_PROCESSO_ANO","attribute09":"N","attribute11":"sync","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function (){ if($("#P0_MSG_CONSULTA").html() == null || $("#P0_MSG_CONSULTA").html() == ''){
var left = (screen.width - 750) / 2;
var top = (screen.height - 450) / 2;
window.open('https://scarlos.giap.com.br/apex/scarlos/f?p=808:146:10479168590202:::146:P146_PROCESSO_NUM,P146_PROCESSO_ANO,P146_INSTITUICAO:'+$("#P0_PROCESSO_NUM").val()+','+$("#P0_PROCESSO_ANO").val()+','+$("#P0_PROCESSO_INST").val(),'JConfirmacao','width=750,height=450,left='+left+',top='+top+',resizable=no,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes');
}
},"action":"NATIVE_JAVASCRIPT_CODE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"cnP8dVlPxeZlBYKO6WmWOsyY-NckBxVT4pLZLLMCbCI","attribute01":"#P0_PROCESSO_NUM,#P0_PROCESSO_ANO,#P0_CUNI","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_OUVIDORIA","bindType":"live","bindEventType":"click","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"UCkCWM66QnC3_bGL6zvMfUfR6TuPdQz5615HdxcJ42c","attribute01":"#P0_TIP_CANAL_CIDADAO","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_TIPO_INSCRICAO","conditionElement":"P0_TIPO_INSCRICAO","triggeringConditionType":"EQUALS","triggeringExpression":"C","bindType":"bind","bindEventType":"change","anyActionsFireOnInit":true,actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"ITEM","affectedElements":"P0_INSC_LATERAL",javascriptFunction:apex.da.hide,"attribute01":"N","action":"NATIVE_HIDE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"ITEM","affectedElements":"P0_INSC_LATERAL",javascriptFunction:apex.da.show,"attribute01":"N","action":"NATIVE_SHOW"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"JQUERY_SELECTOR","affectedElements":"#labelInscLat",javascriptFunction:apex.da.hide,"attribute01":"N","action":"NATIVE_HIDE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"JQUERY_SELECTOR","affectedElements":"#labelInscLat",javascriptFunction:apex.da.show,"attribute01":"N","action":"NATIVE_SHOW"}]},
{"triggeringElementType":"ITEM","triggeringElement":"P0_CERT_INSCRICAO","conditionElement":"P0_TIPO_INSCRICAO","bindType":"bind","bindEventType":"change","anyActionsFireOnInit":false,actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"waitForResult":true,javascriptFunction:apex.da.executePlSqlCode,"ajaxIdentifier":"HLipuCg8ybX5BG5DuEsZY1XVrgon56clZYpbkC9wGxs","attribute01":"#P0_INSC,#P0_CERT_INSCRICAO,#P0_CONTRIBUINTE,#P0_CONTR","attribute02":"#P0_CONTRIBUINTE,#P0_CONTR","attribute04":"N","attribute05":"sync","action":"NATIVE_EXECUTE_PLSQL_CODE"}]}];
}
</script>]]>
|
686
| <![CDATA[<script type="text/javascript">
apex.jQuery( function() {
apex.page.init( this, function() {
apex.jQuery.when.apply( apex.jQuery, apex.page.loadingDeferreds ).done(function() {
try {
(function(){apex.da.initDaEventList();})();
(function(){apex.da.init();})();
} finally {
apex.event.trigger(apex.gPageContext$,'apexreadyend');
}
});
});
});</script>]]>
|
0
| Não há código fonte a ser exibido.
|