$(document).ready(function () {
$('#ea-accept-cookie').click(function () {
$('#eatcookie-alert').hide();
return false; });
$("a[name='popupPoliticaPrivacidade']").fancybox({ 'width': '50%', 'height': '50%', 'titlePosition': 'inside', 'transitionIn': 'fade', 'transitionOut': 'fade', 'type': 'inline', });
$(".ddlCartorioOrigemClass").change(function() { if ($(this).val() == '41') { document.location.href = "realizarPedido.asp?token=e0d4f509-9137-4537-b9fc-70740a443f3a&tipo=1&local=1&idCart=" + $(this).val(); } else { document.location.href = "realizarPedido.asp?token=e0d4f509-9137-4537-b9fc-70740a443f3a&tipo=1&local=2&idCart=" + $(this).val(); } });
$('#modoBalcaoEndCobranca').hide(); $('#locaisRetirada').hide(); $('#DocumentosParaAnexarACertidaoBox').hide();
$(".classMaskData").inputmask("99/99/9999"); $(".classMaskTelefone").inputmask("(99)99999-9999"); $("#txtDadosEnvioCPF").inputmask("999.999.999-99"); $("#txtDadosEnvioCNPJ").inputmask("99.999.999/9999-99"); $("#txtDadosEnvioCPFCertNeg").inputmask("999.999.999-99"); $("#txtDadosEnvioCNPJCertNeg").inputmask("99.999.999/9999-99"); $(".classMaskCEP").inputmask("99999-999"); $("#txtQuantidade").inputmask("9"); $("#qtdeCopiaAutenticada").inputmask("9"); $("#txtCPFRegistrado").inputmask("999.999.999-99"); $("#txtCPFNubente1").inputmask("999.999.999-99"); $("#txtCPFNubente2").inputmask("999.999.999-99"); $("#txtCPFObituado").inputmask("999.999.999-99"); $("input[id*='txtCPFCNPJPropImovel']").inputmask({ mask: ['999.999.999-99', '99.999.999/9999-99'], keepStatic: true }); $("input[id*='txtCPFCNPJForense']").inputmask({ mask: ['999.999.999-99', '99.999.999/9999-99'], keepStatic: true });
$("#lbltxtDadosEnvioCNPJ").hide(); $("#txtDadosEnvioCNPJ").hide(); $("#lbltxtDadosEnvioCNPJCertNeg").hide(); $("#txtDadosEnvioCNPJCertNeg").hide(); $("#ddlEstadosCartorioOrigem").trigger("change"); $("#copiaAutenticada").click(function() {
if ($('input[id="copiaAutenticada"]:checked').length > 0) $("#qtdeCopiaAutenticada").val("1"); else $("#qtdeCopiaAutenticada").val(""); });
$("#txtDadosEnvioEmailConfirma").bind('paste', function(e) { e.preventDefault(); }); $("#msgValidateEmail").hide();
jQuery.validator.addMethod("cpf", function(value, element) { value = jQuery.trim(value);
value = value.replace('.',''); value = value.replace('.',''); cpf = value.replace('-',''); while(cpf.length < 11) cpf = "0"+ cpf; var expReg = /^0+$|^1+$|^2+$|^3+$|^4+$|^5+$|^6+$|^7+$|^8+$|^9+$/; var a = []; var b = new Number; var c = 11; for (i=0; i<11; i++){ a[i] = cpf.charAt(i); if (i < 9) b += (a[i] * --c); } if ((x = b % 11) < 2) { a[9] = 0 } else { a[9] = 11-x } b = 0; c = 11; for (y=0; y<10; y++) b += (a[y] * c--); if ((x = b % 11) < 2) { a[10] = 0; } else { a[10] = 11-x; } var retorno = true; if ((cpf.charAt(9) != a[9]) || (cpf.charAt(10) != a[10]) || cpf.match(expReg)) retorno = false; return this.optional(element) || retorno; }, "Informe um CPF válido"); jQuery.validator.addMethod("cnpj", function(cnpj, element) { cnpj = jQuery.trim(cnpj); // DEIXA APENAS OS NÚMEROS cnpj = cnpj.replace('/',''); cnpj = cnpj.replace('.',''); cnpj = cnpj.replace('.',''); cnpj = cnpj.replace('-',''); var numeros, digitos, soma, i, resultado, pos, tamanho, digitos_iguais; digitos_iguais = 1; if (cnpj.length < 14 && cnpj.length < 15){ return this.optional(element) || false; } for (i = 0; i < cnpj.length - 1; i++){ if (cnpj.charAt(i) != cnpj.charAt(i + 1)){ digitos_iguais = 0; break; } } if (!digitos_iguais){ tamanho = cnpj.length - 2 numeros = cnpj.substring(0,tamanho); digitos = cnpj.substring(tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho; i >= 1; i--){ soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2){ pos = 9; } } resultado = soma % 11 < 2 ? 0 : 11 - soma % 11; if (resultado != digitos.charAt(0)){ return this.optional(element) || false; } tamanho = tamanho + 1; numeros = cnpj.substring(0,tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho; i >= 1; i--){ soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2){ pos = 9; } } resultado = soma % 11 < 2 ? 0 : 11 - soma % 11; if (resultado != digitos.charAt(1)){ return this.optional(element) || false; } return this.optional(element) || true; }else{ return this.optional(element) || false; } }, "Informe um CNPJ válido."); $("#form1").validate({ onfocusout: false, errorClass: "jnvalid", rules: { txtNascNome: { required: true, minlength: 2 }, txtPaiNasc: { required: true, minlength: 2 }, txtMaeNasc: { required: true, minlength: 2 }, txtNascDataNasc: { required: true, minlength: 8 }, txtDadosEnvioEmail: { required: true, maxlength: 100, email: true }, txtDadosEnvioEmailConfirma: { required: true, maxlength: 100, email: true, equalTo: "#txtDadosEnvioEmail" }, txtLivro: { required: true }, txtFolha: { required: true }, txtTermo: { required: true }, anexoDocInteiroTeor: { required: true }, anexoIdentRequerente: { required: true }, FormaCertidao: { required: true }, rblOpcoesEnvio: { required: true }, txtDadosEnvioNome: { required: true }, txtDadosEnvioNomeDestinat: { required: true }, txtDadosEnvioCelularComDDD: { required: true }, txtDadosEnvioCPF: { required: true, cpf: true }, txtDadosEnvioCEP: { required: true }, txtDadosEnvioEndereco: { required: true }, txtDadosEnvioBairro: { required: true }, ddlEstado: { required: true }, txtDadosEnvioNumero: { required: true }, txtCidade: { required: true }, reconhecersinal: { required: false }, apostilamentoHaia: { required: false }, formaPagamento: { required: true }, }, messages: { txtNascNome: "Por favor, informe o nome do registrado", txtPaiNasc: "Por favor, informe o nome do pai", txtMaeNasc: "Por favor, informe o nome da mãe", txtNascDataNasc: { required: "Por favor, informe a data de nascimento", minlength: "Por favor, informe a data corretamente" }, txtDadosEnvioEmail: { required: "Por favor, informe o email", maxlength: "Limite de 100 caracteres para o email" }, txtDadosEnvioEmailConfirma: { required: "Por favor, digite seu email novamente", minlength: "Your password must be at least 5 characters long", equalTo: "Por favor, confirme o email corretamente" }, txtLivro:"Por favor, informe o Livro", txtFolha:"Por favor, informe a Folha", txtTermo:"Por favor, informe o Número/Termo", anexoDocInteiroTeor:"Por favor, anexe o requerimento ao formulário", anexoIdentRequerente:"Por favor, anexe a identidade do requerente", txtFinalidadeCertidao:"Por favor, informe a Finalidade da Certidão", FormaCertidao: "Por favor, informe a Forma da Certidão", rblOpcoesEnvio: "Por favor, informe a forma de envio da Certidão", txtDadosEnvioNome: "Por favor, informe o seu nome", txtDadosEnvioNomeDestinat: "Por favor, informe o nome do destinatário para entrega da certidão", txtDadosEnvioCelularComDDD: "Por favor, informe o seu celular com DDD", txtDadosEnvioCPF: "Por favor, informe seu CPF corretamente", txtDadosEnvioCNPJ: "Por favor, informe seu CNPJ corretamente", txtDadosEnvioCEP: "Por favor, informe o CEP", txtDadosEnvioEndereco: "Por favor, informe o endereço", txtDadosEnvioBairro: "Por favor, informe o bairro", ddlEstado: "Por favor, informe o Estado", txtDadosEnvioEstadoInternacional: "Por favor, informe o Estado/Província", txtDadosEnvioNumero: "Por favor, informe o número. Caso não tenha, informe s/n", txtCidade: "Por favor, informe a cidade", reconhecersinal: "Por favor, marque para reconhecer o sinal público", rblLocaisRetirada: "Por favor, informe o local de retirada", formaPagamento: "Por favor, escolha a forma de pagamento desejada", txtCPFCNPJPropImovel: "Por favor, informe o CPF ou CNPJ do proprietário do imóvel", txtNomeCompletoPropImovel: "Por favor, informe o nome completo do proprietário do imóvel", txtNumeroContribuinteImovel: "Por favor, informe o número do contribuinte do imóvel", txtCPFCNPJForense: "Por favor, informe o CPF/CNPJ da pessoa", txtNomeCompletoForense: "Por favor, informe o nome completo da pessoa", txtRGForense: "Por favor, informe o RG da pessoa", txtNomePaiForense: "Por favor, informe o nome do pai da pessoa", txtNomeMaeForense: "Por favor, informe o nome da mãe da pessoa", txtDataNascForense: "Por favor, informe a data de nascimento da pessoa", ddlEstadoIdCertidaoForense: "Por favor, informe o estado", }, showErrors: function(errorMap, errorList) { if (this.numberOfInvalids() > 0) { $("#summaryErrors").html("Ocorreram " + this.numberOfInvalids() + " erros ao enviar o pedido. Por favor, corrija-os abaixo. Aparecem em vermelho."); this.defaultShowErrors(); } }, submitHandler: function(form) { if (validaFormPerson()) { $('#btn_env_pedido').val('Aguarde. Enviando...'); $('#btn_env_pedido').prop('disabled', true); form.submit(); } } });
});
function showHideSinalPublico(formaEnvio) { modoEntrega = $(formaEnvio).val();
if (modoEntrega == '0') //Balcão {
$('#modoBalcaoEndCobranca').show();
$('#locaisRetirada').show(); $('#rblLocaisRetirada').rules("add", { required: true });
} else {
$('#modoBalcaoEndCobranca').hide();
$('#locaisRetirada').hide(); $('#rblLocaisRetirada').rules("remove","required");
} }
var valoraPagar = 0; function calculaPrecoFrete(cep) { var modoEntrega = ''; modoEntrega = $('#rblOpcoesEnvio').val();
if ($('#txtDadosEnvioCEP').val() == '' || modoEntrega == '') return;
var tipo; tipo = 1;
if (tipo == 1 && $('#txtNascDataNasc').val().replace('_','').length < 10) { alert('Por favor, informe corretamente a data de nascimento.'); $('#txtNascDataNasc').focus(); return; } if (tipo == 2 && $('#txtDataCasamento').val().replace('_','').length < 10) { alert('Por favor, informe corretamente a data de casamento.'); $('#txtDataCasamento').focus(); return; } if (tipo == 3 && $('#txtObitDataObito').val().replace('_','').length < 10) { alert('Por favor, informe corretamente a data do óbito.'); $('#txtObitDataObito').focus(); return; } if (cep.replace('_','').replace('-','').length >= 1 && cep.replace('_','').replace('-','').length < 8) { alert('Por favor, informe o CEP com 8 dígitos.'); $('#txtDadosEnvioCEP').val(''); $('#txtDadosEnvioCEP').focus(); return; } if (modoEntrega == '') { alert('Por favor, informe o modo de entrega e depois informe o CEP novamente.'); $('#txtDadosEnvioCEP').val(''); $('#rblOpcoesEnvio').focus(); return; } //Armazena o ano da Certidão var anoCertidao = 0; if (tipo == 1) anoCertidao = $('#txtNascDataNasc').val().split('/')[2]; else if(tipo == 2) anoCertidao = $('#txtDataCasamento').val().split('/')[2]; else if(tipo == 3) anoCertidao = $('#txtObitDataObito').val().split('/')[2]; if (modoEntrega == '1' || modoEntrega == '2') //Sedex ou Carta Registrada { $.ajax({ url: "?tipo=1&local=1&consultaCep=s&cepDestino=" + cep + "&modoEntrega=" + modoEntrega, cache: false }) .done(function(html) { if (html == 0) { alert('Ocorreu um problema ao consultar o valor do frete. Tente mais tarde.'); $('#txtDadosEnvioCEP').val(''); $('#totalaPagar').val(''); $('#preco').html(''); return; } else atualizaValorTotal(html, anoCertidao); }); } else //Senão é retirada no balcão { atualizaValorTotal('0', anoCertidao); } } function resgataPrecoCusta(anoCertidao) { var custas = []; custas[0] = ['0-4','103.60']; custas[1] = ['5-9','111.31']; custas[2] = ['10-14','119.05']; custas[3] = ['15-19','126.78']; custas[4] = ['20-24','134.52']; custas[5] = ['25-29','142.23']; custas[6] = ['30-34','149.96']; custas[7] = ['35-39','157.70']; custas[8] = ['40-44','165.43']; custas[9] = ['45-49','173.15']; custas[10] = ['50-54','180.88']; custas[11] = ['55-59','188.61']; custas[12] = ['60-64','196.35']; custas[13] = ['65-69','204.06']; custas[14] = ['70-74','211.80']; custas[15] = ['75-79','219.53']; custas[16] = ['80-84','227.26']; custas[17] = ['85-89','234.98']; custas[18] = ['90-94','242.71']; custas[19] = ['95-99','250.45']; custas[20] = ['100-104','258.18']; custas[21] = ['105-109','265.89']; custas[22] = ['110-114','273.63']; custas[23] = ['115-119','281.36']; custas[24] = ['120-124','289.09']; custas[25] = ['125-129','296.81']; custas[26] = ['130-134','304.54']; custas[27] = ['0-4','103.60']; custas[28] = ['5-9','111.31']; custas[29] = ['10-14','119.05']; custas[30] = ['15-19','126.78']; custas[31] = ['20-24','134.52']; custas[32] = ['25-29','142.23']; custas[33] = ['30-34','149.96']; custas[34] = ['35-39','157.70']; custas[35] = ['40-44','165.43']; custas[36] = ['45-49','173.15']; custas[37] = ['50-54','180.88']; custas[38] = ['55-59','188.61']; custas[39] = ['60-64','196.35']; custas[40] = ['65-69','204.06']; custas[41] = ['70-74','211.80']; custas[42] = ['75-79','219.53']; custas[43] = ['80-84','227.26']; custas[44] = ['85-89','234.98']; custas[45] = ['90-94','242.71']; custas[46] = ['95-99','250.45']; custas[47] = ['100-104','258.18']; custas[48] = ['105-109','265.89']; custas[49] = ['110-114','273.63']; custas[50] = ['115-119','281.36']; custas[51] = ['120-124','289.09']; custas[52] = ['125-129','296.81']; custas[53] = ['130-134','304.54']; custas[54] = ['0-4','103.60']; custas[55] = ['5-9','111.31']; custas[56] = ['10-14','119.05']; custas[57] = ['15-19','126.78']; custas[58] = ['20-24','134.52']; custas[59] = ['25-29','142.23']; custas[60] = ['30-34','149.96']; custas[61] = ['35-39','157.70']; custas[62] = ['40-44','165.43']; custas[63] = ['45-49','173.15']; custas[64] = ['50-54','180.88']; custas[65] = ['55-59','188.61']; custas[66] = ['60-64','196.35']; custas[67] = ['65-69','204.06']; custas[68] = ['70-74','211.80']; custas[69] = ['75-79','219.53']; custas[70] = ['80-84','227.26']; custas[71] = ['85-89','234.98']; custas[72] = ['90-94','242.71']; custas[73] = ['95-99','250.45']; custas[74] = ['100-104','258.18']; custas[75] = ['105-109','265.89']; custas[76] = ['110-114','273.63']; custas[77] = ['115-119','281.36']; custas[78] = ['120-124','289.09']; custas[79] = ['125-129','296.81']; custas[80] = ['130-134','304.54']; custas[81] = ['0-4','103.60']; custas[82] = ['5-9','111.31']; custas[83] = ['10-14','119.05']; custas[84] = ['15-19','126.78']; custas[85] = ['20-24','134.52']; custas[86] = ['25-29','142.23']; custas[87] = ['30-34','149.96']; custas[88] = ['35-39','157.70']; custas[89] = ['40-44','165.43']; custas[90] = ['45-49','173.15']; custas[91] = ['50-54','180.88']; custas[92] = ['55-59','188.61']; custas[93] = ['60-64','196.35']; custas[94] = ['65-69','204.06']; custas[95] = ['70-74','211.80']; custas[96] = ['75-79','219.53']; custas[97] = ['80-84','227.26']; custas[98] = ['85-89','234.98']; custas[99] = ['90-94','242.71']; custas[100] = ['95-99','250.45']; custas[101] = ['100-104','258.18']; custas[102] = ['105-109','265.89']; custas[103] = ['110-114','273.63']; custas[104] = ['115-119','281.36']; custas[105] = ['120-124','289.09']; custas[106] = ['125-129','296.81']; custas[107] = ['130-134','304.54']; var valor; var arrCusta; var arrAnos; var arrAnoIni; var arrAnoFim; var valorCusta; for (i=0;i < custas.length; i++) { arrAnos = custas[i][0].split('-'); if (arrAnos.length > 1) { arrAnoIni = arrAnos[0]; arrAnoFim = arrAnos[1]; valorCusta = custas[i][1]; if (anoCertidao >= arrAnoIni && anoCertidao <= arrAnoFim) return valorCusta; } } } function atualizaValorTotal(valorFrete, anoCertidao) { var precoCusta = 0; if (anoCertidao.replace('_','').length == 4) precoCusta = resgataPrecoCusta(anoCertidao); else { alert('Informe o ano da data da certidão corretamente com 4 dígitos'); $('#txtDadosEnvioCEP').val(''); $('#totalaPagar').val(''); $('#preco').html(''); return; } if (anoCertidao > 2022) { alert('O ano da data da certidão não pode ser superior ao ano atual'); $('#txtDadosEnvioCEP').val(''); $('#totalaPagar').val(''); $('#preco').html(''); }
var valorMaterializacao = $('#valorMaterializacao').val(); if (valorMaterializacao == '') valorMaterializacao = '0'; var precoTotal = (parseFloat(precoCusta) + parseFloat(valorFrete.replace(',','.')) + parseFloat(valorMaterializacao.replace(',','.'))); precoTotal = precoTotal.toFixed(2); precoTotal = precoTotal.toString().replace('.',','); $('#totalaPagar').val(precoTotal); $('#valorAdicional').val(valorFrete); $('#preco').html('R$ ' + precoTotal); }
function opcTipoPessoa(valor) { if (valor == '1') //Pessoa Física { $("#lbltxtDadosEnvioCPF").show(); $("#txtDadosEnvioCPF").show(); $("#lbltxtDadosEnvioCNPJ").hide(); $("#txtDadosEnvioCNPJ").hide(); $("#lblNomeRazao").text('Nome do Requerente');
$('#txtDadosEnvioCPF').rules("add", { required: true, cpf: true }); $('#txtDadosEnvioCNPJ').rules("remove","required"); $('#txtDadosEnvioCNPJ').rules("remove","cnpj"); } else //Pessoa Jurídica { $("#lbltxtDadosEnvioCPF").hide(); $("#txtDadosEnvioCPF").hide(); $("#lbltxtDadosEnvioCNPJ").show(); $("#txtDadosEnvioCNPJ").show(); $("#lblNomeRazao").text('Razão Social do Requerente');
$('#txtDadosEnvioCNPJ').rules("add", { required: true, cnpj: true }); $('#txtDadosEnvioCPF').rules("remove","required"); $('#txtDadosEnvioCPF').rules("remove","cpf"); } }
function opcTipoPessoaCertNeg(valor) { if (valor == '1') //Pessoa Física { $("#lbltxtDadosEnvioCPFCertNeg").show(); $("#txtDadosEnvioCPFCertNeg").show(); $("#lbltxtDadosEnvioCNPJCertNeg").hide(); $("#txtDadosEnvioCNPJCertNeg").hide();
$('#txtDadosEnvioCPFCertNeg').rules("add", { required: true, cpf: true }); $('#txtDadosEnvioCNPJCertNeg').rules("remove", "required"); $('#txtDadosEnvioCNPJCertNeg').rules("remove", "cnpj");
$("#boxNomePaiCertNeg").show(); $("#boxNomeMaeCertNeg").show(); $("#boxDataNascCertNeg").show(); } else //Pessoa Jurídica { $("#lbltxtDadosEnvioCPFCertNeg").hide(); $("#txtDadosEnvioCPFCertNeg").hide(); $("#lbltxtDadosEnvioCNPJCertNeg").show(); $("#txtDadosEnvioCNPJCertNeg").show();
$('#txtDadosEnvioCNPJCertNeg').rules("add", { required: true, cnpj: true }); $('#txtDadosEnvioCPFCertNeg').rules("remove", "required"); $('#txtDadosEnvioCPFCertNeg').rules("remove", "cpf");
$("#boxNomePaiCertNeg").hide(); $("#boxNomeMaeCertNeg").hide(); $("#boxDataNascCertNeg").hide(); } }
function getEndereco(valorCEP) { if (valorCEP.replace("-","").replace("_","").length == 8) { $.ajax({ url: "getEndCorreios.php?cep=" + valorCEP, cache: false }) .done(function(html) { try { var o = JSON.parse(html); if (o && typeof o === "object") { var obj = jQuery.parseJSON(html); $("#txtDadosEnvioEndereco").val(obj.tipo_logradouro + ' ' + obj.logradouro); $("#txtDadosEnvioBairro").val(obj.bairro); $("#txtCidade").val(obj.cidade); $("#ddlEstado").val(obj.uf); } } catch (e) { } }); } } function exibeUploadInteiroTeor() { if ($('#FormaCertidaoInteiroTeor').is(":checked") || $('#FormaCertidaoCopiaDoLivro').is(":checked") || $('#FormaCertidao').val() == '2' || $('#FormaCertidao').val() == '3') //Inteiro teor { $("#formUploadAnexoInteiroTeor").show('slow'); $("#formUploadIdentRequerente").show('slow'); } else { $("#formUploadAnexoInteiroTeor").hide('fast'); $("#formUploadIdentRequerente").hide('fast'); } }
function exibeUploadInteiroTeor2() { if ($('#FormaCertidaoInteiroTeor').is(":checked") || $('#FormaCertidaoCopiaDoLivro').is(":checked")) //Inteiro teor { $("#formUploadAnexoInteiroTeor2").show('slow'); $("#formUploadIdentRequerente").show('slow'); } else { $("#formUploadAnexoInteiroTeor2").hide('fast'); $("#formUploadIdentRequerente").hide('fast'); } }
function exibeUploadInteiroTeor3() { if ($('#FormaCertidaoInteiroTeor').is(":checked") || $('#FormaCertidaoCopiaDoLivro').is(":checked")) //Inteiro teor { $("#formUploadAnexoInteiroTeor3").show('slow'); $("#formUploadIdentRequerente").show('slow'); } else { $("#formUploadAnexoInteiroTeor3").hide('fast'); $("#formUploadIdentRequerente").hide('fast'); } }
function validFinalCertidao() {
if ($('#FormaCertidaoInteiroTeor').is(":checked") || $('#FormaCertidaoCopiaDoLivro').is(":checked")) //Inteiro teor ou Cópia do Livro { $("#finalCertidao").show('slow'); $('#txtFinalidadeCertidao').rules("add", { required: true }); } else { $("#finalCertidao").hide('fast'); $('#txtFinalidadeCertidao').rules("remove", "required"); }
}
function estCivAtlChange() { if ($("#EstadoCivilAtual").val() != "1" && $("#EstadoCivilAtual").val() != "") { if ($("[name='TipoCertidao']").val() == "2" && ($("#EstadoCivilAtual").val() == "2" || $("#EstadoCivilAtual").val() == "3" || $("#EstadoCivilAtual").val() == "4")) { //Casamento e casado/separado/divorciado
$("#divtxtConjugueFalecido").hide('fast'); $("#divtxtDataCasamentoObito").hide('fast'); $("#divtxtNomeCartorio").hide('fast');
$('#txtConjugueFalecido').rules("remove", "required"); $('#txtDataCasamentoObito').rules("remove", "required"); $('#txtNomeCartorio').rules("remove", "required"); } else { $("#divtxtConjugueFalecido").show('slow'); $("#divtxtDataCasamentoObito").show('slow'); $("#divtxtNomeCartorio").show('slow');
$('#txtConjugueFalecido').rules("add", { required: true }); $('#txtDataCasamentoObito').rules("add", { required: true }); $('#txtNomeCartorio').rules("add", { required: true }); } } else { $("#divtxtConjugueFalecido").hide('fast'); $("#divtxtDataCasamentoObito").hide('fast'); $("#divtxtNomeCartorio").hide('fast');
$('#txtConjugueFalecido').rules("remove", "required"); $('#txtDataCasamentoObito').rules("remove", "required"); $('#txtNomeCartorio').rules("remove", "required"); }
}
function carregaCartoriosByCidade(combo) {
var tipoCartorio = "1";
$.ajax({ url: "https://segundaviacertidao.com.br/RetornaDados/RetornaCartoriosOrigem.ashx?token=e0d4f509-9137-4537-b9fc-70740a443f3a&UFEstadoOrigem=" + $(combo).val() + "&tipoCartorio=" + tipoCartorio, cache: false }) .done(function(html) { var $select = $('#ddlCartorioOrigem'); $select.find('option').remove().end().append(html); }); }
$('.classfancyIdentExample').fancybox({ 'width': '65%', 'autoScale': false });
function alteraFraseData() { if ($('input[id="transcricao"]:checked').length > 0) { $('#lbltxtNascDataNasc').text('Data da transcrição no Brasil'); $('#lbltxtDataCasamento').text('Data da transcrição no Brasil'); $('#lbltxtObitDataObito').text('Data da transcrição no Brasil'); } else { $('#lbltxtNascDataNasc').text('Data do nascimento'); $('#lbltxtDataCasamento').text('Data do casamento'); $('#lbltxtObitDataObito').text('Data do óbito'); } }
function validaPaises(campo) { if ($(campo).val() != '32') //32 = Brasil { $("#txtDadosEnvioCEP").removeClass("classMaskCEP"); $("#txtDadosEnvioCEP").attr('maxlength', '20'); $("#txtDadosEnvioCEP").removeAttr("onKeyUp"); $("#txtDadosEnvioEstadoInternacional").show(); $('#txtDadosEnvioEstadoInternacional').rules("add", { required: true }); $('#txtDadosEnvioCEP').inputmask('remove');
$("#ddlEstado").hide(); $('#ddlEstado').rules("remove", "required"); } else { $("#txtDadosEnvioCEP").addClass("classMaskCEP"); $("#txtDadosEnvioCEP").attr('maxlength', '9'); $('#txtDadosEnvioCEP').attr('onKeyUp', 'getEndereco(this.value)'); $("#txtDadosEnvioEstadoInternacional").hide(); $('#txtDadosEnvioEstadoInternacional').rules("remove", "required"); $("#txtDadosEnvioCEP").inputmask("99999-999");
$("#ddlEstado").show(); $('#ddlEstado').rules("add", { required: true }); } }
function checkNoCPFCertidao() { if ($('input[id="naoInformarCPF"]:checked').length > 0) $("#boxMotivoNaoInformarCPF").show(); else $("#boxMotivoNaoInformarCPF").hide(); }
function validaFormPerson() { var tipo; tipo = 1;
$("#msgErroPersonCPFDoisCampos").hide(); $("#msgErroPersonCPF").hide(); $("#msgErroPersonCPFMotivo").hide(); $("#msgErroPersonCPFNubente").hide();
if (tipo == 1 && $("#txtCPFRegistrado").val() == '' && $('input[id="naoInformarCPF"]:checked').length == 0) { $("#msgErroPersonCPF").show(); $("#txtCPFRegistrado").focus(); return false; } else if (tipo == 1 && $("#txtCPFRegistrado").val() == '' && $('input[id="naoInformarCPF"]:checked').length > 0 && $("#txtnaoInformarCPFMotivo").val() == '') { $("#msgErroPersonCPFMotivo").show(); $("#txtnaoInformarCPFMotivo").focus(); $("#boxMotivoNaoInformarCPF").show(); return false; } else if (tipo == 1 && $("#txtCPFRegistrado").val() != '' && $('input[id="naoInformarCPF"]:checked').length > 0) { $("#msgErroPersonCPFDoisCampos").show(); $("#txtCPFRegistrado").focus(); return false; } else if (tipo == 2 && (($("#txtCPFNubente1").val() != '' && $("#txtCPFNubente2").val() == '') || ($("#txtCPFNubente1").val() == '' && $("#txtCPFNubente2").val() != ''))) { $("#msgErroPersonCPFNubente").show(); $("#txtCPFNubente1").focus(); return false; } else if (tipo == 2 && $("#txtCPFNubente1").val() == '' && $("#txtCPFNubente2").val() == '' && $('input[id="naoInformarCPF"]:checked').length == 0) { $("#msgErroPersonCPF").show(); $("#txtCPFNubente1").focus(); return false; } else if (tipo == 2 && $("#txtCPFNubente1").val() == '' && $("#txtCPFNubente2").val() == '' && $('input[id="naoInformarCPF"]:checked').length > 0 && $("#txtnaoInformarCPFMotivo").val() == '') { $("#msgErroPersonCPFMotivo").show(); $("#txtnaoInformarCPFMotivo").focus(); $("#boxMotivoNaoInformarCPF").show(); return false; } else if (tipo == 2 && $("#txtCPFNubente1").val() != '' && $("#txtCPFNubente2").val() != '' && $('input[id="naoInformarCPF"]:checked').length > 0) { $("#msgErroPersonCPFDoisCampos").show(); $("#txtCPFNubente1").focus(); return false; } else if (tipo == 3 && $("#txtCPFObituado").val() == '' && $('input[id="naoInformarCPF"]:checked').length == 0) { $("#msgErroPersonCPF").show(); $("#txtCPFObituado").focus(); return false; } else if (tipo == 3 && $("#txtCPFObituado").val() == '' && $('input[id="naoInformarCPF"]:checked').length > 0 && $("#txtnaoInformarCPFMotivo").val() == '') { $("#msgErroPersonCPFMotivo").show(); $("#txtnaoInformarCPFMotivo").focus(); $("#boxMotivoNaoInformarCPF").show(); return false; } else if (tipo == 3 && $("#txtCPFObituado").val() != '' && $('input[id="naoInformarCPF"]:checked').length > 0) { $("#msgErroPersonCPFDoisCampos").show(); $("#txtCPFObituado").focus(); return false; } else { $("#msgErroPersonCPFDoisCampos").hide(); $("#msgErroPersonCPF").hide(); $("#msgErroPersonCPFMotivo").hide(); $("#msgErroPersonCPFNubente").hide(); return true; }
if ((tipo == 35 || tipo == 36 || tipo == 37) && $("table.ParticipAto tbody tr").length < 1) { $("#msgValidParticipsAto").show(); $("#nomeAto").focus(); $("#msgValidParticipsAto").html('Por favor, informe os participantes do ato'); return false; } if ((tipo == 35 || tipo == 36 || tipo == 37) && $("table.ParticipAto tbody tr").length > 0) { var ListaParticipantesAto = ""; $("table.ParticipAto tbody tr").each(function () { ListaParticipantesAto += "Nome: " + $(this).find("td").eq(0).html() + " | CPF/CNPJ: " + $(this).find("td").eq(1).html() + " \n"; }); $("#ListaParticipantesAto").val(ListaParticipantesAto); }
return true; }
function validateEmail(email) { $.ajax({ url: "https://segundaviacertidao.com.br/RetornaDados/Validate.ashx?tipo=email&valor=" + email, cache: false }) .done(function (retorno) { if (retorno == 'false') { $("#msgValidateEmail").show(); $("#msgValidateEmail").html("Aparentemente o email informado está incorreto (" + email + "). Verifique por favor."); } else { $("#msgValidateEmail").hide(); $("#msgValidateEmail").html(""); } }); }
function QtdeFunc(campo) { if ($(campo).is(":checked")) { switch ($(campo).attr('id')) { case 'FormaCertidaoFormatoPadrao': if ($("#txtQuantidade").val() == '' || $("#txtQuantidade").val() == '0') $("#txtQuantidade").val('1'); break; case 'FormaCertidaoInteiroTeor': if ($("#txtQuantidadeInteiroTeorDigitada").val() == '' || $("#txtQuantidadeInteiroTeorDigitada").val() == '0') $("#txtQuantidadeInteiroTeorDigitada").val('1'); break; case 'FormaCertidaoCopiaDoLivro': if ($("#txtQuantidadeInteiroTeorCopRepro").val() == '' || $("#txtQuantidadeInteiroTeorCopRepro").val() == '0') $("#txtQuantidadeInteiroTeorCopRepro").val('1'); break; case 'FormaCertidaoMini_certidao': if ($("#txtQuantidadeMiniCertidao").val() == '' || $("#txtQuantidadeMiniCertidao").val() == '0') $("#txtQuantidadeMiniCertidao").val('1'); break; } } else { switch ($(campo).attr('id')) { case 'FormaCertidaoFormatoPadrao': $("#txtQuantidade").val('0'); break; case 'FormaCertidaoInteiroTeor': $("#txtQuantidadeInteiroTeorDigitada").val('0'); break; case 'FormaCertidaoCopiaDoLivro': $("#txtQuantidadeInteiroTeorCopRepro").val('0'); break; case 'FormaCertidaoMini_certidao': $("#txtQuantidadeMiniCertidao").val('0'); break; } } }
function searchDadosEnvio(valor) { var valorCampo = valor.replace(/[^0-9]/g, ''); var valorCPFCNPJ = valorCampo.replace(/[^0-9]/g, '').length; if (valorCPFCNPJ == 11 || valorCPFCNPJ == 14) { $body = $("body"); $body.addClass("loadingDadosCPF"); $.ajax({ url: "https://segundaviacertidao.com.br/RetornaDados/RetornaDadosUser.ashx?token=e0d4f509-9137-4537-b9fc-70740a443f3a&valor=" + valorCampo, cache: false }) .done(function (retorno) { try { $body.removeClass("loadingDadosCPF"); var o = JSON.parse(retorno); if (o && typeof o === "object" && o.DadosEnvioNome != null) { $("#txtDadosEnvioNome").val(o.DadosEnvioNome); $("#txtDadosEnvioNomeDestinat").val(o.DadosEnvioNomeDestinat); $("#txtDadosEnvioEmail").val(o.DadosEnvioEmail); $("#txtDadosEnvioEmailConfirma").val(o.DadosEnvioEmail); $("#txtDadosEnvioCelularComDDD").val(o.DadosEnvioCelular); $("#rblOpcoesEnvio > option").each(function () { if (this.value != '' && o.OpcaoEnvio != '' && parseInt(this.value) == parseInt(o.OpcaoEnvio)) { $(this).prop('selected', true); } }); $("#rblOpcoesEnvio").trigger('change'); $("#rblLocaisRetirada").val(o.LocaisRetiradaId); $("#rblDadosEnvioPais").val(o.DadosEnvioPaisId).trigger('change'); $("#txtDadosEnvioCEP").val(o.DadosEnvioCEP); $("#txtDadosEnvioEndereco").val(o.DadosEnvioEndereco); $("#txtDadosEnvioNumero").val(o.DadosEnvioNumero); $("#txtDadosEnvioComplemento").val(o.DadosEnvioComplemento); $("#txtDadosEnvioBairro").val(o.DadosEnvioBairro); if (o.DadosEnvioPaisId != '32') { //Brasil $("#txtDadosEnvioEstadoInternacional").val(o.DadosEnvioEstadoInternacional); } else { $("#ddlEstado").val(o.DadosEnvioEstadoId); } $("#txtCidade").val(o.DadosEnvioCidade); } } catch (e) { alert(e) } }); } }
function copyToNomeDestinat(valor) { if ($("#txtDadosEnvioNomeDestinat").val() == '') { $("#txtDadosEnvioNomeDestinat").val($("#txtDadosEnvioNome").val()); } }
function exibeOpcoesUploadDocsCertidao() { if ($('#incluirDocsCertidao').is(":checked")) { $("#DocumentosParaAnexarACertidaoBox").show('slow'); $("#DocumentosParaAnexarACertidaoBox").show('slow'); $('#anexoDocInclusaoDoc').rules("add", { required: true, messages: { required: "Por favor, anexe o formulário preenchdio" } } ); } else { $("#DocumentosParaAnexarACertidaoBox").hide('fast'); $("#DocumentosParaAnexarACertidaoBox").hide('fast'); $('#anexoDocInclusaoDoc').rules("remove", "required"); $('#anexoDocInclusaoDoc').rules("remove", "messages"); } }
function exibeUploadDoc(campo, campoUpload) { if ($(campo).is(":checked")) { $("#" + campoUpload).show('slow'); } else { $("#" + campoUpload).hide('fast'); } }
function ComboSubTipoEscrituraShowOutro(campo) { $("#txtOutroSubTipoEscritura").val('');
if ($(campo).val() == '20') { $("#IdOutroSubTipo").show(); $('#txtOutroSubTipoEscritura').rules("add", { required: true, messages: { required: "Por favor, descreva o Subtipo" } } ); } else { $("#IdOutroSubTipo").hide(); $('#txtOutroSubTipoEscritura').rules("remove", "required"); } }
function ComboFinalidadeAto(campo) { $("#txtOutraFinalidadeAto").val('');
if ($(campo).val() == '8') { $("#IdOutraFinalidadeAto").show(); $('#txtOutraFinalidadeAto').rules("add", { required: true, messages: { required: "Por favor, descreva a Finalidade do ato" } } ); } else { $("#IdOutraFinalidadeAto").hide(); $('#txtOutraFinalidadeAto').rules("remove", "required"); } }
function ExibeOpcoesUploads(campo) { for (i = 1; i <= 4;i++) { $("#SentencaGrupo_" + i).hide(); $("#SentencaGrupo_"+ i +" :input").val(''); } // $("#SentencaGrupo_1 :input").rules("remove", "required"); $("#SentencaGrupo_" + $(campo).val()).show('slow'); // $("#SentencaGrupo_" + $(campo).val() +" :input").rules("add", { // required: true // } // ); } function showTextoPopupSinalPublico(campo) { if ($(campo).is(':checked')) { $.fancybox({ 'width': '50%', 'height': '50%', 'autoScale': true, 'transitionIn': 'fade', 'transitionOut': 'fade', 'type': 'inline', 'href': '#textoAlertaSinalPublico' }); } if ($(campo).is(':checked')) { $('#apostilamentoHaia').rules("add", { required: true, messages: { required: "Para requisitar o sinal público é necessário que seja requisitado também o apostilamento de Haia." } } ); } else { $('#apostilamentoHaia').rules("remove", "required"); } } function TextoAvisoInteiroTeorTodas() { if ($('#FormaCertidaoInteiroTeor').is(":checked") || $('#FormaCertidaoCopiaDoLivro').is(":checked")) //Inteiro teor { $("#IdTextoAvisoInteiroTeorTodas").show('slow'); } else { $("#IdTextoAvisoInteiroTeorTodas").hide('fast'); } } function TextoAvisoInteiroTeorCopia() { if ($('#FormaCertidaoCopiaDoLivro').is(":checked")) //Inteiro teor cópia do livro { $("#IdTextoAvisoInteiroTeorCopia").show('slow'); } else { $("#IdTextoAvisoInteiroTeorCopia").hide('fast'); } }

Pedidos de Certidões Online / 1º RCPN e de Interdição e Tutelas da capital/RJ

Preencha os campos obrigatórios no formulário abaixo para o pedido da certidão.
Atenção! Antes de preencher o formulário abaixo, tenha em mãos: nome completo, Livro, Folha e Número/Termo,
senão clique em PEDIDO DE BUSCA, e faça sua busca.