<p></p><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><p></p><!-- [et_pb_line_break_holder] --><p><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script type='text/javascript'><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var municipios={<!-- [et_pb_line_break_holder] --> "Alta Verapaz": ["Chahal","Chisec","Cobán","Fray Bartolomé de las Casas","Santa Catalina La Tinta","Lanquín","Panzós","Raxruhá","San Cristóbal Verapaz","San Juan Chamelco","San Pedro Carchá","Santa Cruz Verapaz","Santa María Cahabón","Senahú","Tamahú","Tactic","Tucurú"]<!-- [et_pb_line_break_holder] -->,"Baja Verapaz":["Cubulco","Granados","Purulhá","Rabinal","Salamá","San Jerónimo","San Miguel Chicaj","Santa Cruz el Chol"]<!-- [et_pb_line_break_holder] -->,"Chimaltenango": ["Acatenango","Chimaltenango","El Tejar","Parramos","Patzicía","Patzún","Pochuta","San Andrés Itzapa","San José Poaquíl","San Juan Comalapa","San Martín Jilotepeque","Santa Apolonia","Santa Cruz Balanyá","Tecpán","Yepocapa","Zaragoza"]<!-- [et_pb_line_break_holder] -->,"Chiquimula": ["Camotán","Chiquimula","Concepción LasMinas","Esquipulas","Ipala","Jocotán","Olopa","Quetzaltepeque","San Jacinto","San José la Arada","San Juan Ermita"]<!-- [et_pb_line_break_holder] -->,"El Progreso": ["El Jícaro","Guastatoya","Morazán","San Agustín Acasaguastlán","San Antonio La Paz","San Cristóbal Acasaguastlán","Sanarate","Sansare"]<!-- [et_pb_line_break_holder] -->,"Escuintla": ["Escuintla","Guanagazapa","Iztapa","La Democracia","La Gomera","Masagua","Nueva Concepción","Palín","San José","San Vicente Pacaya","Santa Lucía Cotzumalguapa","Sipacate","Siquinalá","Tiquisate"]<!-- [et_pb_line_break_holder] -->,"Guatemala":["Amatitlán","Chinautla","Chuarrancho","Ciudad de Guatemala","Fraijanes","Mixco","Palencia","San José del Golfo","San José Pinula","San Juan Sacatepéquez","San Miguel Petapa","San Pedro Ayampuc","San Pedro Sacatepéquez","San Raymundo","Santa Catarina Pinula","Villa Canales","Villa Nueva"]<!-- [et_pb_line_break_holder] -->,"Huehuetenango": ["Aguacatán","Chiantla","Colotenango","Concepción Huista","Cuilco","Huehuetenango","Jacaltenango","La Democracia","La Libertad","Malacatancito","Nentón","Petatán","San Antonio Huista","San Gaspar Ixchil","San Ildefonso Ixtahuacán","San Juan Atitán","San Juan Ixcoy","San Mateo Ixtatán","San Miguel Acatán","San Pedro Nécta","San Pedro Soloma","San Rafael La Independencia","San Rafael Pétzal","San Sebastián Coatán","San Sebastián Huehuetenango","Santa Ana Huista","Santa Bárbara","Santa Cruz Barillas","Santa Eulalia","Santiago Chimaltenango","Tectitán","Todos Santos Cuchumatán","Unión Cantinil"]<!-- [et_pb_line_break_holder] -->,"Izabal": ["El Estor","Livingston","Los Amates","Morales","Puerto Barrios"]<!-- [et_pb_line_break_holder] -->,"Jalapa": ["Jalapa","Mataquescuintla","Monjas","San Carlos Alzatate","San Luis Jilotepeque","San Manuel Chaparrón","San Pedro Pinula"]<!-- [et_pb_line_break_holder] -->,"Jutiapa": ["Agua Blanca","Asunción Mita","Atescatempa","Comapa","Conguaco","El Adelanto","El Progreso","Jalpatagua","Zapotitlán","Jerez","Jutiapa","Moyuta","Pasaco","Quesada","San José Acatempa","Santa Catarina Mita","Yupiltepeque"]<!-- [et_pb_line_break_holder] -->,"Petén": ["Dolores","El Chal","Flores","La Libertad","Las Cruces","Melchor de Mencos","Poptún","San Andrés","San Benito","San Francisco","San José","San Luis","Santa Ana","Sayaxché"]<!-- [et_pb_line_break_holder] -->,"Quetzaltenango": ["Almolonga","Cabricán","Cajolá","Cantel","Coatepeque","Colomba Costa Cuca","Concepción Chiquirichapa","El Palmar","Flores Costa Cuca","Génova","Huitán","La Esperanza","Olintepeque","Palestina de Los Altos","Quetzaltenango","Salcajá","San Carlos Sija","San Francisco La Unión","San Juan Ostuncalco","San Martín Sacatepéquez","San Mateo","San Miguel Sigüilá","Sibilia","Zunil"]<!-- [et_pb_line_break_holder] -->,"Quiché": ["Canillá","Chajul","Chicamán","Chiché","Chinique","Cunén","Ixcán","Joyabaj","Nebaj","Pachalum","Patzité","Sacapulas","San Andrés Sajcabajá","San Antonio Ilotenango","San Bartolomé Jocotenango","San Juan Cotzal","San Pedro Jocopilas","Santa Cruz del Quiché","Santo Tomás Chichicastenango","Uspantán","Zacualpa"]<!-- [et_pb_line_break_holder] -->,"Retalhuleu": ["Champerico","El Asintal","Nuevo San Carlos","Retalhuleu","San Andrés Villa Seca","San Felipe","San Martín Zapotitlán","San Sebastián","Santa Cruz Muluá"]<!-- [et_pb_line_break_holder] -->,"Sacatepéquez": ["Alotenango","Ciudad Vieja","Jocotenango","La Antigua Guatemala","Magdalena Milpas Altas","Pastores","San Antonio Aguas Calientes","San Bartolomé Milpas Altas","San Lucas Sacatepéquez","San Miguel Dueñas","Santa Catarina Barahona","Santa Lucía Milpas Altas","Santa María de Jesús","Santiago Sacatepéquez","Santo Domingo Xenacoj","Sumpango"]<!-- [et_pb_line_break_holder] -->,"San Marcos": ["Ayutla","Catarina","Comitancillo","Concepción Tutuapa","El Quetzal","El Tumbador","Esquipulas Palo Gordo","Ixchiguán","La Blanca","La Reforma","Malacatán","Nuevo Progreso","Ocós","Pajapita","Río Blanco","San Antonio Sacatepéquez","San Cristóbal Cucho","San José El Rodeo","San José Ojetenam","San Lorenzo","San Marcos","San Miguel Ixtahuacán","San Pablo","San Pedro Sacatepéquez","San Rafael Pie de la Cuesta","Sibinal","Sipacapa","Tacaná","Tajumulco","Tejutla"]<!-- [et_pb_line_break_holder] -->,"Santa Rosa":["Barberena","Casillas","Chiquimulilla","Cuilapa","Guazacapán","Nueva Santa Rosa","Oratorio","Pueblo Nuevo Viñas","San Juan Tecuaco","San Rafael las Flores","Santa Cruz Naranjo","Santa María Ixhuatán","Santa Rosa de Lima","Taxisco"]<!-- [et_pb_line_break_holder] -->,"Sololá": ["Concepción","Nahualá","Panajachel","San Andrés Semetabaj","San Antonio Palopó","San José Chacayá","San Juan La Laguna","San Lucas Tolimán","San Marcos La Laguna","San Pablo La Laguna","San Pedro La Laguna","Santa Catarina Ixtahuacán","Santa Catarina Palopó","Santa Clara La Laguna","Santa Cruz La Laguna","Santa Lucía Utatlán","Santa María Visitación","Santiago Atitlán","Santiago Pujhar","Sololá"]<!-- [et_pb_line_break_holder] -->,"Suchitepéquez":["Chicacao","Cuyotenango","Mazatenango","Patulul","Pueblo Nuevo","Río Bravo","Samayac","San Antonio Suchitepéquez","San Bernardino","San Francisco Zapotitlán","San Gabriel","San José El Idolo","San José La Máquina","San Juan Bautista","San Lorenzo","San Miguel Panán","San Pablo Jocopilas","Santa Bárbara","Santo Domingo Suchitepéquez","Santo Tomás La Unión","Zunilito"]<!-- [et_pb_line_break_holder] -->,"Totonicapán": ["Momostenango","San Andrés Xecul","San Bartolo","San Cristóbal Totonicapán","San Francisco El Alto","Santa Lucía La Reforma","Santa María Chiquimula","Totonicapán"]<!-- [et_pb_line_break_holder] -->,"Zacapa": ["Cabañas","Estanzuela","Gualán","Huité","La Unión","Río Hondo","San Diego","San Jorge","Teculután","Usumatlán","Zacapa"]<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var select = jQuery('.municipios-dinamico SELECT');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->jQuery(document).ready(function(){<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->//jQuery('.edad INPUT').attr('disabled','true');<!-- [et_pb_line_break_holder] -->jQuery('.edad INPUT').attr('readonly', true);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->jQuery('.fecha-nacimiento INPUT').on('change', function () { calcularEdad() });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> filter_municipio(jQuery('.municipios-dinamico SELECT'),'municipios-dinamico',jQuery('.departamento-dinamico SELECT').val())<!-- [et_pb_line_break_holder] --> filter_municipio(jQuery('.municipios-dinamico-trabajo SELECT'),'municipios-dinamico-trabajo',jQuery('.departamento-dinamico SELECT').val())<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico SELECT').on('change', function () {<!-- [et_pb_line_break_holder] --> filter_municipio(jQuery('.municipios-dinamico SELECT'),'municipios-dinamico',this.value)<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SELECT').on('change', function () {<!-- [et_pb_line_break_holder] --> filter_municipio(jQuery('.municipios-dinamico-trabajo SELECT'),'municipios-dinamico-trabajo',this.value)<!-- [et_pb_line_break_holder] --> }); <!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery('.trabajando_actualmente INPUT').on('change', function () {<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SELECT').unbind().on('change', function () {<!-- [et_pb_line_break_holder] --> filter_municipio(jQuery('.municipios-dinamico-trabajo SELECT'),'municipios-dinamico-trabajo',this.value)<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if(jQuery('.trabajando_actualmente INPUT:checked').val()=='Si')<!-- [et_pb_line_break_holder] --> {<!-- [et_pb_line_break_holder] --> jQuery('.sector-trabaja SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.sector-trabaja SELECT').attr("required", "true");<!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SELECT').attr("required", "true");<!-- [et_pb_line_break_holder] --> jQuery('.municipios-dinamico-trabajo SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.municipios-dinamico-trabajo SELECT').attr("required", "true");<!-- [et_pb_line_break_holder] --> jQuery('.tipo-contrato SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.tipo-contrato SELECT').attr("required", "true");<!-- [et_pb_line_break_holder] --> jQuery('.tipo-institucion-empresa SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.tipo-institucion-empresa SELECT').attr("required", "true");<!-- [et_pb_line_break_holder] --> jQuery('.especifique-otros SPAN.field_required').show(0);<!-- [et_pb_line_break_holder] --> jQuery('.especifique-otros INPUT').attr("required", "true");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> jQuery('.sector-trabaja SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.sector-trabaja SELECT').removeAttr('required');<!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.departamento-dinamico-trabajo SELECT').removeAttr('required');<!-- [et_pb_line_break_holder] --> jQuery('.municipios-dinamico-trabajo SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.municipios-dinamico-trabajo SELECT').removeAttr('required');<!-- [et_pb_line_break_holder] --> jQuery('.tipo-contrato SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.tipo-contrato SELECT').removeAttr('required');<!-- [et_pb_line_break_holder] --> jQuery('.tipo-institucion-empresa SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.tipo-institucion-empresa SELECT').removeAttr('required');<!-- [et_pb_line_break_holder] --> jQuery('.especifique-otros SPAN.field_required').hide(0);<!-- [et_pb_line_break_holder] --> jQuery('.especifique-otros INPUT').removeAttr('required');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function filter_municipio(select,objClass,muniSelected)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] --> jQuery('.'+objClass+' SELECT OPTION').remove()<!-- [et_pb_line_break_holder] --> jQuery.each(municipios[muniSelected], function(text, key) {<!-- [et_pb_line_break_holder] --> var option = new Option(key, key);<!-- [et_pb_line_break_holder] --> select.append(jQuery(option));<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function calcularEdad()<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] --> var fecha=jQuery('.fecha-nacimiento INPUT').val()<!-- [et_pb_line_break_holder] --> if(validate_fecha(fecha)==true)<!-- [et_pb_line_break_holder] --> {<!-- [et_pb_line_break_holder] --> var values=fecha.split("/");<!-- [et_pb_line_break_holder] --> var dia = values[0];<!-- [et_pb_line_break_holder] --> var mes = values[1];<!-- [et_pb_line_break_holder] --> var ano = values[2];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var fecha_hoy = new Date();<!-- [et_pb_line_break_holder] --> var ahora_ano = fecha_hoy.getYear();<!-- [et_pb_line_break_holder] --> var ahora_mes = fecha_hoy.getMonth()+1;<!-- [et_pb_line_break_holder] --> var ahora_dia = fecha_hoy.getDate();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> // realizamos el calculo<!-- [et_pb_line_break_holder] --> var edad = (ahora_ano + 1900) - ano;<!-- [et_pb_line_break_holder] --> if ( ahora_mes < mes ) { edad--;}<!-- [et_pb_line_break_holder] --> if ((mes == ahora_mes) && (ahora_dia < dia)) { edad--; }<!-- [et_pb_line_break_holder] --> if (edad > 1900) { edad -= 1900;}<!-- [et_pb_line_break_holder] --> // calculamos los meses<!-- [et_pb_line_break_holder] --> var meses=0;<!-- [et_pb_line_break_holder] --> if(ahora_mes>mes) meses=ahora_mes-mes;<!-- [et_pb_line_break_holder] --> if(ahora_mes<mes) meses=12-(mes-ahora_mes);<!-- [et_pb_line_break_holder] --> if(ahora_mes==mes && dia>ahora_dia) meses=11;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> // calculamos los dias<!-- [et_pb_line_break_holder] --> var dias=0;<!-- [et_pb_line_break_holder] --> if(ahora_dia>dia) dias=ahora_dia-dia;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if(ahora_dia<dia)<!-- [et_pb_line_break_holder] --> {<!-- [et_pb_line_break_holder] --> ultimoDiaMes=new Date(ahora_ano, ahora_mes, 0);<!-- [et_pb_line_break_holder] --> dias=ultimoDiaMes.getDate()-(dia-ahora_dia);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> jQuery('.edad INPUT').val(edad)<!-- [et_pb_line_break_holder] --> console.log("Tienes "+edad+" años, "+meses+" meses y "+dias+" días");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->function validate_fecha(fecha)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] --> var patron=new RegExp("^([0-9]{1,2})([/])([0-9]{1,2})([/])(19|20)+([0-9]{2})$");<!-- [et_pb_line_break_holder] --> if(fecha.search(patron)==0)<!-- [et_pb_line_break_holder] --> {<!-- [et_pb_line_break_holder] --> var values=fecha.split("/");<!-- [et_pb_line_break_holder] --> if(isValidDate(values[0],values[1],values[2])) { return true; }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->function isValidDate(day,month,year)<!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] --> var dteDate;<!-- [et_pb_line_break_holder] --> month=month-1;<!-- [et_pb_line_break_holder] --> dteDate=new Date(year,month,day);<!-- [et_pb_line_break_holder] --> return ((day==dteDate.getDate()) && (month==dteDate.getMonth()) && (year==dteDate.getFullYear()));<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></script></p><!-- [et_pb_line_break_holder] -->