function fValidar(id,flag_operacion){
    // Varibles de campos y secciones
    var tr_sec_9=document.getElementById("tr_sec_9");
    var tr_sec_11=document.getElementById("tr_sec_11");
    var tr_sec_12=document.getElementById("tr_sec_12");
    var tr_sec_13=document.getElementById("tr_sec_13");
    var tr_sec_14=document.getElementById("tr_sec_14");
    var cmbo_modalidad=document.forms[0].LST_9_90;
    var txt_apepaterno=document.getElementById("TXT_APEPATERNO");
    var txt_apematerno=document.getElementById("TXT_APEMATERNO");
    var txt_nombres=document.getElementById("TXT_NOMBRES");
    var cmbo_tipodoc=document.forms[0].LST_9_23;
    var txt_numerodoc=document.getElementById("TXT_NUMERODOC");
    var txt_fechanac=document.getElementById("TXT_FECHANAC");
    var cmbo_estacivil=document.forms[0].LST_9_26;
    var cmbo_paisorigen=document.forms[0].LST_9_27;
    var sexo=document.forms[0].LST_9_28;
    var txt_direccion=document.getElementById("TXT_DIRECCION");
    var txt_distrito=document.getElementById("TXT_DISTRITO");
    var txt_provincia=document.getElementById("TXT_PROVINCIA");
    var cmbo_departament=document.forms[0].LST_9_32;
    var cmbo_paisresidenc=document.forms[0].LST_9_33;
    var txt_fonocasa=document.getElementById("TXT_FONOCASA");
    var txt_celular=document.getElementById("TXT_CELULAR");
    var txt_email=document.getElementById("TXT_EMAIL");
    var cmb_maxinivelalcanz=document.forms[0].LST_11_38;
    var cmb_gradotituloobten=document.forms[0].LST_11_39;
    var cmb_institucion=document.getElementById("CMB_INSTITUCION");
    var cmb_profesion=document.forms[0].LST_11_41;
    var txt_profesionotro=document.getElementById("TXT_PROFESIONOTRO");
    var txt_ultimoanocursado=document.getElementById("TXT_ULTIMOANOCURSADO");
    var cmb_especializacion=document.forms[0].LST_11_44;
    var txt_especializa2=document.getElementById("TXT_ESPECIALIZA2");
    var txt_certificacion1=document.getElementById("TXT_CERTIFICACION1");
    var txt_certificacion2=document.getElementById("TXT_CERTIFICACION2");
    var txt_certificacion3=document.getElementById("TXT_CERTIFICACION3");
    var cmb_idioma1=document.forms[0].LST_12_49;
    var radbut_idioma1lectur=document.forms[0].LST_12_50;
    var radbut_idioma1conver=document.forms[0].LST_12_51;
    var radbut_idioma1escrit=document.forms[0].LST_12_52;
    var cmb_idioma2=document.forms[0].LST_12_53;
    var radbut_idioma2lectur=document.forms[0].LST_12_54;
    var radbut_idioma2conver=document.forms[0].LST_12_55;
    var radbut_idioma2escrit=document.forms[0].LST_12_56;
    var cmb_idioma3=document.forms[0].LST_12_57;
    var radbut_idioma3lectur=document.forms[0].LST_12_58;
    var radbut_idioma3conver=document.forms[0].LST_12_59;
    var radbut_idioma3escrit=document.forms[0].LST_12_60;
    var cmb_windows=document.forms[0].LST_12_61;
    var cmb_word=document.forms[0].LST_12_62;
    var cmb_excel=document.forms[0].LST_12_63;
    var cmb_powerpoint=document.forms[0].LST_12_64;
    var cmb_visualbasic=document.forms[0].LST_12_65;
    var cmb_project=document.forms[0].LST_12_66;
    var cmb_access=document.forms[0].LST_12_67;
    var cmb_illustrator=document.forms[0].LST_12_68;
    var cmb_photoshop=document.forms[0].LST_12_69;
    var txt_cursocompu1=document.getElementById("TXT_CURSOCOMPU1");
    var txt_cursocompu2=document.getElementById("TXT_CURSOCOMPU2");
    var txt_cursocompu3=document.getElementById("TXT_CURSOCOMPU3");
    var txt_certificomp1=document.getElementById("TXT_CERTIFICOMP1");
    var txt_certificomp2=document.getElementById("TXT_CERTIFICOMP2");
    var txt_certificomp3=document.getElementById("TXT_CERTIFICOMP3");
    var rdbut_experiencialab=document.forms[0].LST_13_76;
    var txt_experiencialabor=document.getElementById("TXT_EXPERIENCIALABOR");
    var txt_empresa=document.getElementById("TXT_EMPRESA");
    var cmb_actividaempresa=document.forms[0].LST_13_79;
    var txt_mesanoingreso=document.getElementById("TXT_MESANOINGRESO");
    var txt_mesanotermino=document.getElementById("TXT_MESANOTERMINO");
    var cmbo_cargoejecutiv=document.forms[0].LST_13_82;
    var txt_cargoejecutivotr=document.getElementById("TXT_CARGOEJECUTIVOTR");
    var cmbo_cargonoejecut=document.forms[0].LST_13_84;
    var txt_cargonoejecutotr=document.getElementById("TXT_CARGONOEJECUTOTR");
    var txt_monto=document.getElementById("TXT_MONTO");
    var cmbo_moneda=document.forms[0].LST_13_87;
    var cmbo_periodopago=document.forms[0].LST_13_88;
    var cmbo_formapago=document.forms[0].LST_13_89;
    var upload_curriculum=document.getElementById("UPLOAD_CURRICULUM");

    if (flag_operacion != "1") {//no ir a página anterior
    // validar formulario
    if(tr_sec_9!=null){
    if (esVisible('tr_sec_9')){
    if (document.getElementById("hid_valida_90").value=="R"){
    if(cmbo_modalidad!=null){
    if (cmbo_modalidad.options[cmbo_modalidad.selectedIndex].value==-1){
        alert("Ingrese el modalidad:");
        cmbo_modalidad.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_20").value=="R"){
    if(txt_apepaterno!=null){
    if (!trim(txt_apepaterno.value)){
        alert("Ingrese el apellido paterno");
        txt_apepaterno.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_21").value=="R"){
    if(txt_apematerno!=null){
    if (!trim(txt_apematerno.value)){
        alert("Ingrese el apellido materno");
        txt_apematerno.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_22").value=="R"){
    if(txt_nombres!=null){
    if (!trim(txt_nombres.value)){
        alert("Ingrese el nombres");
        txt_nombres.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_23").value=="R"){
    if(cmbo_tipodoc!=null){
    if (cmbo_tipodoc.options[cmbo_tipodoc.selectedIndex].value==-1){
        alert("Ingrese el tipo de documento");
        cmbo_tipodoc.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_24").value=="R"){
    if(txt_numerodoc!=null){
    if (!trim(txt_numerodoc.value)){
        alert("Ingrese el número");
        txt_numerodoc.focus();
        return false;
    }
    }
    if(txt_numerodoc!=null){
    if (!esNumeroEntero(txt_numerodoc.value)){
        alert("Ingrese un número entero válido");
        txt_numerodoc.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_24").value=="N"){
    var txt_numerodoc=document.getElementById("TXT_NUMERODOC");
    if(txt_numerodoc!=null){
    if (trim(txt_numerodoc.value)){
    if(txt_numerodoc!=null){
    if (!esNumeroEntero(txt_numerodoc.value)){
        alert("Ingrese un número entero válido");
        txt_numerodoc.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_25").value=="R"){
    if(txt_fechanac!=null){
    if (!trim(txt_fechanac.value)){
        alert("Ingrese el fecha nacimiento");
        txt_fechanac.focus();
        return false;
    }
    }
    if(txt_fechanac!=null){
    if (!esFecha(txt_fechanac.value)){
        alert("Ingrese una fecha válida");
        txt_fechanac.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_25").value=="N"){
    var txt_fechanac=document.getElementById("TXT_FECHANAC");
    if(txt_fechanac!=null){
    if (trim(txt_fechanac.value) && txt_fechanac.value.toLowerCase()!="(dd/mm/aaaa)"){
    if(txt_fechanac!=null){
    if (!esFecha(txt_fechanac.value)){
        alert("Ingrese una fecha válida");
        txt_fechanac.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_26").value=="R"){
    if(cmbo_estacivil!=null){
    if (cmbo_estacivil.options[cmbo_estacivil.selectedIndex].value==-1){
        alert("Ingrese el estado civil");
        cmbo_estacivil.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_27").value=="R"){
    if(cmbo_paisorigen!=null){
    if (cmbo_paisorigen.options[cmbo_paisorigen.selectedIndex].value==-1){
        alert("Ingrese el país de origen");
        cmbo_paisorigen.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_28").value=="R"){
    if(sexo!=null){
    if (sexo.options[sexo.selectedIndex].value==-1){
        alert("Ingrese el sexo");
        sexo.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_29").value=="R"){
    if(txt_direccion!=null){
    if (!trim(txt_direccion.value) || txt_direccion.value.toLowerCase()=="(avenida, calle, jirón; número, dpto.)"){
        alert("Ingrese el dirección");
        txt_direccion.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_30").value=="R"){
    if(txt_distrito!=null){
    if (!trim(txt_distrito.value)){
        alert("Ingrese el distrito");
        txt_distrito.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_31").value=="R"){
    if(txt_provincia!=null){
    if (!trim(txt_provincia.value)){
        alert("Ingrese el provincia");
        txt_provincia.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_32").value=="R"){
    if(cmbo_departament!=null){
    if (cmbo_departament.options[cmbo_departament.selectedIndex].value==-1){
        alert("Ingrese el departamento");
        cmbo_departament.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_33").value=="R"){
    if(cmbo_paisresidenc!=null){
    if (cmbo_paisresidenc.options[cmbo_paisresidenc.selectedIndex].value==-1){
        alert("Ingrese el país de residencia");
        cmbo_paisresidenc.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_34").value=="R"){
    if(txt_fonocasa!=null){
    if (!trim(txt_fonocasa.value)){
        alert("Ingrese el teléfono casa");
        txt_fonocasa.focus();
        return false;
    }
    }
    if(txt_fonocasa!=null){
    if (!esNumeroEntero(txt_fonocasa.value)){
        alert("Ingrese un número entero válido");
        txt_fonocasa.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_34").value=="N"){
    var txt_fonocasa=document.getElementById("TXT_FONOCASA");
    if(txt_fonocasa!=null){
    if (trim(txt_fonocasa.value)){
    if(txt_fonocasa!=null){
    if (!esNumeroEntero(txt_fonocasa.value)){
        alert("Ingrese un número entero válido");
        txt_fonocasa.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_35").value=="R"){
    if(txt_celular!=null){
    if (!trim(txt_celular.value)){
        alert("Ingrese el teléfono celular");
        txt_celular.focus();
        return false;
    }
    }
    if(txt_celular!=null){
    if (!esNumeroEntero(txt_celular.value)){
        alert("Ingrese un número entero válido");
        txt_celular.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_35").value=="N"){
    var txt_celular=document.getElementById("TXT_CELULAR");
    if(txt_celular!=null){
    if (trim(txt_celular.value)){
    if(txt_celular!=null){
    if (!esNumeroEntero(txt_celular.value)){
        alert("Ingrese un número entero válido");
        txt_celular.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_36").value=="R"){
    if(txt_email!=null){
    if (!trim(txt_email.value)){
        alert("Ingrese el e-mail");
        txt_email.focus();
        return false;
    }
    }
    if(txt_email!=null){
    if (!esCorreo(txt_email.value)){
        alert("Ingrese un correo válido");
        txt_email.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_36").value=="N"){
    var txt_email=document.getElementById("TXT_EMAIL");
    if(txt_email!=null){
    if (trim(txt_email.value)){
    if(txt_email!=null){
    if (!esCorreo(txt_email.value)){
        alert("Ingrese un correo válido");
        txt_email.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    }
    }
    // validar formulario
    if(tr_sec_11!=null){
    if (esVisible('tr_sec_11')){
    if (document.getElementById("hid_valida_38").value=="R"){
    if(cmb_maxinivelalcanz!=null){
    if (cmb_maxinivelalcanz.options[cmb_maxinivelalcanz.selectedIndex].value==-1){
        alert("Ingrese el máximo nivel alcanzado");
        cmb_maxinivelalcanz.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_39").value=="R"){
    if(cmb_gradotituloobten!=null){
    if (cmb_gradotituloobten.options[cmb_gradotituloobten.selectedIndex].value==-1){
        alert("Ingrese el grado / título obtenido");
        cmb_gradotituloobten.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_40").value=="R"){
    if(cmb_institucion!=null){
    if (!trim(cmb_institucion.value)){
        alert("Ingrese el institución");
        cmb_institucion.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_41").value=="R"){
    if(cmb_profesion!=null){
    if (cmb_profesion.options[cmb_profesion.selectedIndex].value==-1){
        alert("Ingrese el profesión");
        cmb_profesion.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_42").value=="R"){
    if(txt_profesionotro!=null){
    if (!trim(txt_profesionotro.value)){
        alert("Ingrese el especificar si escogió otros");
        txt_profesionotro.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_43").value=="R"){
    if(txt_ultimoanocursado!=null){
    if (!trim(txt_ultimoanocursado.value)){
        alert("Ingrese el último año cursado");
        txt_ultimoanocursado.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_44").value=="R"){
    if(cmb_especializacion!=null){
    if (cmb_especializacion.options[cmb_especializacion.selectedIndex].value==-1){
        alert("Ingrese el especialización");
        cmb_especializacion.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_45").value=="R"){
    if(txt_especializa2!=null){
    if (!trim(txt_especializa2.value)){
        alert("Ingrese el especificar si escogió otros");
        txt_especializa2.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_46").value=="R"){
    if(txt_certificacion1!=null){
    if (!trim(txt_certificacion1.value) || txt_certificacion1.value.toLowerCase()=="1"){
        alert("Ingrese el certificaciones");
        txt_certificacion1.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_47").value=="R"){
    if(txt_certificacion2!=null){
    if (!trim(txt_certificacion2.value) || txt_certificacion2.value.toLowerCase()=="2"){
        alert("Ingrese valor");
        txt_certificacion2.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_48").value=="R"){
    if(txt_certificacion3!=null){
    if (!trim(txt_certificacion3.value) || txt_certificacion3.value.toLowerCase()=="3"){
        alert("Ingrese valor");
        txt_certificacion3.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }
    // validar formulario
    if(tr_sec_12!=null){
    if (esVisible('tr_sec_12')){
    if (document.getElementById("hid_valida_49").value=="R"){
    if(cmb_idioma1!=null){
    if (cmb_idioma1.options[cmb_idioma1.selectedIndex].value==-1){
        alert("Ingrese el idioma 1");
        cmb_idioma1.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_50").value=="R"){
    if(radbut_idioma1lectur!=null){
    if (getSelectedList(radbut_idioma1lectur)==-1){
        alert("Ingrese el - lectura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_51").value=="R"){
    if(radbut_idioma1conver!=null){
    if (getSelectedList(radbut_idioma1conver)==-1){
        alert("Ingrese el - conversación");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_52").value=="R"){
    if(radbut_idioma1escrit!=null){
    if (getSelectedList(radbut_idioma1escrit)==-1){
        alert("Ingrese el - escritura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_53").value=="R"){
    if(cmb_idioma2!=null){
    if (cmb_idioma2.options[cmb_idioma2.selectedIndex].value==-1){
        alert("Ingrese el idioma 2");
        cmb_idioma2.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_54").value=="R"){
    if(radbut_idioma2lectur!=null){
    if (getSelectedList(radbut_idioma2lectur)==-1){
        alert("Ingrese el - lectura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_55").value=="R"){
    if(radbut_idioma2conver!=null){
    if (getSelectedList(radbut_idioma2conver)==-1){
        alert("Ingrese el - conversación");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_56").value=="R"){
    if(radbut_idioma2escrit!=null){
    if (getSelectedList(radbut_idioma2escrit)==-1){
        alert("Ingrese el - escritura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_57").value=="R"){
    if(cmb_idioma3!=null){
    if (cmb_idioma3.options[cmb_idioma3.selectedIndex].value==-1){
        alert("Ingrese el idioma 3");
        cmb_idioma3.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_58").value=="R"){
    if(radbut_idioma3lectur!=null){
    if (getSelectedList(radbut_idioma3lectur)==-1){
        alert("Ingrese el - lectura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_59").value=="R"){
    if(radbut_idioma3conver!=null){
    if (getSelectedList(radbut_idioma3conver)==-1){
        alert("Ingrese el - conversación");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_60").value=="R"){
    if(radbut_idioma3escrit!=null){
    if (getSelectedList(radbut_idioma3escrit)==-1){
        alert("Ingrese el - escritura");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_61").value=="R"){
    if(cmb_windows!=null){
    if (cmb_windows.options[cmb_windows.selectedIndex].value==-1){
        alert("Ingrese el windows");
        cmb_windows.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_62").value=="R"){
    if(cmb_word!=null){
    if (cmb_word.options[cmb_word.selectedIndex].value==-1){
        alert("Ingrese el word");
        cmb_word.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_63").value=="R"){
    if(cmb_excel!=null){
    if (cmb_excel.options[cmb_excel.selectedIndex].value==-1){
        alert("Ingrese el excel");
        cmb_excel.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_64").value=="R"){
    if(cmb_powerpoint!=null){
    if (cmb_powerpoint.options[cmb_powerpoint.selectedIndex].value==-1){
        alert("Ingrese el powerpoint");
        cmb_powerpoint.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_65").value=="R"){
    if(cmb_visualbasic!=null){
    if (cmb_visualbasic.options[cmb_visualbasic.selectedIndex].value==-1){
        alert("Ingrese el visual basic");
        cmb_visualbasic.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_66").value=="R"){
    if(cmb_project!=null){
    if (cmb_project.options[cmb_project.selectedIndex].value==-1){
        alert("Ingrese el project");
        cmb_project.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_67").value=="R"){
    if(cmb_access!=null){
    if (cmb_access.options[cmb_access.selectedIndex].value==-1){
        alert("Ingrese el access");
        cmb_access.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_68").value=="R"){
    if(cmb_illustrator!=null){
    if (cmb_illustrator.options[cmb_illustrator.selectedIndex].value==-1){
        alert("Ingrese el illustrator");
        cmb_illustrator.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_69").value=="R"){
    if(cmb_photoshop!=null){
    if (cmb_photoshop.options[cmb_photoshop.selectedIndex].value==-1){
        alert("Ingrese el photoshop");
        cmb_photoshop.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_70").value=="R"){
    if(txt_cursocompu1!=null){
    if (!trim(txt_cursocompu1.value) || txt_cursocompu1.value.toLowerCase()=="1"){
        alert("Ingrese el otros cursos de computación");
        txt_cursocompu1.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_71").value=="R"){
    if(txt_cursocompu2!=null){
    if (!trim(txt_cursocompu2.value) || txt_cursocompu2.value.toLowerCase()=="2"){
        alert("Ingrese valor");
        txt_cursocompu2.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_72").value=="R"){
    if(txt_cursocompu3!=null){
    if (!trim(txt_cursocompu3.value) || txt_cursocompu3.value.toLowerCase()=="3"){
        alert("Ingrese valor");
        txt_cursocompu3.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_73").value=="R"){
    if(txt_certificomp1!=null){
    if (!trim(txt_certificomp1.value) || txt_certificomp1.value.toLowerCase()=="1"){
        alert("Ingrese el certificaciones en:");
        txt_certificomp1.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_74").value=="R"){
    if(txt_certificomp2!=null){
    if (!trim(txt_certificomp2.value) || txt_certificomp2.value.toLowerCase()=="2"){
        alert("Ingrese valor");
        txt_certificomp2.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_75").value=="R"){
    if(txt_certificomp3!=null){
    if (!trim(txt_certificomp3.value) || txt_certificomp3.value.toLowerCase()=="3"){
        alert("Ingrese valor");
        txt_certificomp3.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }
    // validar formulario
    if(tr_sec_13!=null){
    if (esVisible('tr_sec_13')){
    if (document.getElementById("hid_valida_76").value=="R"){
    if(rdbut_experiencialab!=null){
    if (getSelectedList(rdbut_experiencialab)==-1){
        alert("Ingrese el ¿usted tiene experiencia laboral?");
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_77").value=="R"){
    if(txt_experiencialabor!=null){
    if (!trim(txt_experiencialabor.value)){
        alert("Ingrese el (años de experiencia)");
        txt_experiencialabor.focus();
        return false;
    }
    }
    if(txt_experiencialabor!=null){
    if (!esNumeroEntero(txt_experiencialabor.value)){
        alert("Ingrese un número entero válido");
        txt_experiencialabor.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_77").value=="N"){
    var txt_experiencialabor=document.getElementById("TXT_EXPERIENCIALABOR");
    if(txt_experiencialabor!=null){
    if (trim(txt_experiencialabor.value)){
    if(txt_experiencialabor!=null){
    if (!esNumeroEntero(txt_experiencialabor.value)){
        alert("Ingrese un número entero válido");
        txt_experiencialabor.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_78").value=="R"){
    if(txt_empresa!=null){
    if (!trim(txt_empresa.value)){
        alert("Ingrese el empresa");
        txt_empresa.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_79").value=="R"){
    if(cmb_actividaempresa!=null){
    if (cmb_actividaempresa.options[cmb_actividaempresa.selectedIndex].value==-1){
        alert("Ingrese el actividad de la empresa");
        cmb_actividaempresa.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_80").value=="R"){
    if(txt_mesanoingreso!=null){
    if (!trim(txt_mesanoingreso.value)){
        alert("Ingrese el mes y año de ingreso");
        txt_mesanoingreso.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_81").value=="R"){
    if(txt_mesanotermino!=null){
    if (!trim(txt_mesanotermino.value)){
        alert("Ingrese el mes y año de término");
        txt_mesanotermino.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_82").value=="R"){
    if(cmbo_cargoejecutiv!=null){
    if (cmbo_cargoejecutiv.options[cmbo_cargoejecutiv.selectedIndex].value==-1){
        alert("Ingrese el cargo ejecutivo");
        cmbo_cargoejecutiv.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_83").value=="R"){
    if(txt_cargoejecutivotr!=null){
    if (!trim(txt_cargoejecutivotr.value)){
        alert("Ingrese el nombre del puesto");
        txt_cargoejecutivotr.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_84").value=="R"){
    if(cmbo_cargonoejecut!=null){
    if (cmbo_cargonoejecut.options[cmbo_cargonoejecut.selectedIndex].value==-1){
        alert("Ingrese el cargo no ejecutivo");
        cmbo_cargonoejecut.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_85").value=="R"){
    if(txt_cargonoejecutotr!=null){
    if (!trim(txt_cargonoejecutotr.value)){
        alert("Ingrese el nombre del puesto");
        txt_cargonoejecutotr.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_86").value=="R"){
    if(txt_monto!=null){
    if (!trim(txt_monto.value)){
        alert("Ingrese el monto");
        txt_monto.focus();
        return false;
    }
    }
    if(txt_monto!=null){
    if (!esNumeroEntero(txt_monto.value)){
        alert("Ingrese un número entero válido");
        txt_monto.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    else if (document.getElementById("hid_valida_86").value=="N"){
    var txt_monto=document.getElementById("TXT_MONTO");
    if(txt_monto!=null){
    if (trim(txt_monto.value)){
    if(txt_monto!=null){
    if (!esNumeroEntero(txt_monto.value)){
        alert("Ingrese un número entero válido");
        txt_monto.focus();
        return false;
    }
    }
    }
    }
    }// end else if hid_valida_...
    if (document.getElementById("hid_valida_87").value=="R"){
    if(cmbo_moneda!=null){
    if (cmbo_moneda.options[cmbo_moneda.selectedIndex].value==-1){
        alert("Ingrese el moneda");
        cmbo_moneda.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_88").value=="R"){
    if(cmbo_periodopago!=null){
    if (cmbo_periodopago.options[cmbo_periodopago.selectedIndex].value==-1){
        alert("Ingrese el período pago");
        cmbo_periodopago.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_89").value=="R"){
    if(cmbo_formapago!=null){
    if (cmbo_formapago.options[cmbo_formapago.selectedIndex].value==-1){
        alert("Ingrese el forma de pago");
        cmbo_formapago.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }
    // validar formulario
    if(tr_sec_14!=null){
    if (esVisible('tr_sec_14')){
    if (document.getElementById("hid_valida_95").value=="R"){
    if(upload_curriculum!=null){
    if (!trim(upload_curriculum.value)){
        alert("Ingrese el puedes ingresar tu cv aquí:");
        upload_curriculum.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }

    // Asigna texto a valor de listas
    if(cmbo_modalidad!=null) document.getElementById("hid_lista_90").value=cmbo_modalidad.options[cmbo_modalidad.selectedIndex].text;
    if(cmbo_tipodoc!=null) document.getElementById("hid_lista_23").value=cmbo_tipodoc.options[cmbo_tipodoc.selectedIndex].text;
    if(cmbo_estacivil!=null) document.getElementById("hid_lista_26").value=cmbo_estacivil.options[cmbo_estacivil.selectedIndex].text;
    if(cmbo_paisorigen!=null) document.getElementById("hid_lista_27").value=cmbo_paisorigen.options[cmbo_paisorigen.selectedIndex].text;
    if(sexo!=null) document.getElementById("hid_lista_28").value=sexo.options[sexo.selectedIndex].text;
    if(cmbo_departament!=null) document.getElementById("hid_lista_32").value=cmbo_departament.options[cmbo_departament.selectedIndex].text;
    if(cmbo_paisresidenc!=null) document.getElementById("hid_lista_33").value=cmbo_paisresidenc.options[cmbo_paisresidenc.selectedIndex].text;
    if(cmb_maxinivelalcanz!=null) document.getElementById("hid_lista_38").value=cmb_maxinivelalcanz.options[cmb_maxinivelalcanz.selectedIndex].text;
    if(cmb_gradotituloobten!=null) document.getElementById("hid_lista_39").value=cmb_gradotituloobten.options[cmb_gradotituloobten.selectedIndex].text;
    if(cmb_profesion!=null) document.getElementById("hid_lista_41").value=cmb_profesion.options[cmb_profesion.selectedIndex].text;
    if(cmb_especializacion!=null) document.getElementById("hid_lista_44").value=cmb_especializacion.options[cmb_especializacion.selectedIndex].text;
    if(cmb_idioma1!=null) document.getElementById("hid_lista_49").value=cmb_idioma1.options[cmb_idioma1.selectedIndex].text;
    if(radbut_idioma1lectur!=null) document.getElementById("hid_lista_50").value=getSelectedRadioText(radbut_idioma1lectur);
    if(radbut_idioma1conver!=null) document.getElementById("hid_lista_51").value=getSelectedRadioText(radbut_idioma1conver);
    if(radbut_idioma1escrit!=null) document.getElementById("hid_lista_52").value=getSelectedRadioText(radbut_idioma1escrit);
    if(cmb_idioma2!=null) document.getElementById("hid_lista_53").value=cmb_idioma2.options[cmb_idioma2.selectedIndex].text;
    if(radbut_idioma2lectur!=null) document.getElementById("hid_lista_54").value=getSelectedRadioText(radbut_idioma2lectur);
    if(radbut_idioma2conver!=null) document.getElementById("hid_lista_55").value=getSelectedRadioText(radbut_idioma2conver);
    if(radbut_idioma2escrit!=null) document.getElementById("hid_lista_56").value=getSelectedRadioText(radbut_idioma2escrit);
    if(cmb_idioma3!=null) document.getElementById("hid_lista_57").value=cmb_idioma3.options[cmb_idioma3.selectedIndex].text;
    if(radbut_idioma3lectur!=null) document.getElementById("hid_lista_58").value=getSelectedRadioText(radbut_idioma3lectur);
    if(radbut_idioma3conver!=null) document.getElementById("hid_lista_59").value=getSelectedRadioText(radbut_idioma3conver);
    if(radbut_idioma3escrit!=null) document.getElementById("hid_lista_60").value=getSelectedRadioText(radbut_idioma3escrit);
    if(cmb_windows!=null) document.getElementById("hid_lista_61").value=cmb_windows.options[cmb_windows.selectedIndex].text;
    if(cmb_word!=null) document.getElementById("hid_lista_62").value=cmb_word.options[cmb_word.selectedIndex].text;
    if(cmb_excel!=null) document.getElementById("hid_lista_63").value=cmb_excel.options[cmb_excel.selectedIndex].text;
    if(cmb_powerpoint!=null) document.getElementById("hid_lista_64").value=cmb_powerpoint.options[cmb_powerpoint.selectedIndex].text;
    if(cmb_visualbasic!=null) document.getElementById("hid_lista_65").value=cmb_visualbasic.options[cmb_visualbasic.selectedIndex].text;
    if(cmb_project!=null) document.getElementById("hid_lista_66").value=cmb_project.options[cmb_project.selectedIndex].text;
    if(cmb_access!=null) document.getElementById("hid_lista_67").value=cmb_access.options[cmb_access.selectedIndex].text;
    if(cmb_illustrator!=null) document.getElementById("hid_lista_68").value=cmb_illustrator.options[cmb_illustrator.selectedIndex].text;
    if(cmb_photoshop!=null) document.getElementById("hid_lista_69").value=cmb_photoshop.options[cmb_photoshop.selectedIndex].text;
    if(rdbut_experiencialab!=null) document.getElementById("hid_lista_76").value=getSelectedRadioText(rdbut_experiencialab);
    if(cmb_actividaempresa!=null) document.getElementById("hid_lista_79").value=cmb_actividaempresa.options[cmb_actividaempresa.selectedIndex].text;
    if(cmbo_cargoejecutiv!=null) document.getElementById("hid_lista_82").value=cmbo_cargoejecutiv.options[cmbo_cargoejecutiv.selectedIndex].text;
    if(cmbo_cargonoejecut!=null) document.getElementById("hid_lista_84").value=cmbo_cargonoejecut.options[cmbo_cargonoejecut.selectedIndex].text;
    if(cmbo_moneda!=null) document.getElementById("hid_lista_87").value=cmbo_moneda.options[cmbo_moneda.selectedIndex].text;
    if(cmbo_periodopago!=null) document.getElementById("hid_lista_88").value=cmbo_periodopago.options[cmbo_periodopago.selectedIndex].text;
    if(cmbo_formapago!=null) document.getElementById("hid_lista_89").value=cmbo_formapago.options[cmbo_formapago.selectedIndex].text;

   // Limpiar texto de ayuda

    if(txt_fechanac!=null){
    if (txt_fechanac.value.toLowerCase()=="(dd/mm/aaaa)"){
        txt_fechanac.value="";
    }
    }
    if(txt_direccion!=null){
    if (txt_direccion.value.toLowerCase()=="(avenida, calle, jirón; número, dpto.)"){
        txt_direccion.value="";
    }
    }
    if(txt_certificacion1!=null){
    if (txt_certificacion1.value.toLowerCase()=="1"){
        txt_certificacion1.value="";
    }
    }
    if(txt_certificacion2!=null){
    if (txt_certificacion2.value.toLowerCase()=="2"){
        txt_certificacion2.value="";
    }
    }
    if(txt_certificacion3!=null){
    if (txt_certificacion3.value.toLowerCase()=="3"){
        txt_certificacion3.value="";
    }
    }
    if(txt_cursocompu1!=null){
    if (txt_cursocompu1.value.toLowerCase()=="1"){
        txt_cursocompu1.value="";
    }
    }
    if(txt_cursocompu2!=null){
    if (txt_cursocompu2.value.toLowerCase()=="2"){
        txt_cursocompu2.value="";
    }
    }
    if(txt_cursocompu3!=null){
    if (txt_cursocompu3.value.toLowerCase()=="3"){
        txt_cursocompu3.value="";
    }
    }
    if(txt_certificomp1!=null){
    if (txt_certificomp1.value.toLowerCase()=="1"){
        txt_certificomp1.value="";
    }
    }
    if(txt_certificomp2!=null){
    if (txt_certificomp2.value.toLowerCase()=="2"){
        txt_certificomp2.value="";
    }
    }
    if(txt_certificomp3!=null){
    if (txt_certificomp3.value.toLowerCase()=="3"){
        txt_certificomp3.value="";
    }
    }

    if (flag_operacion == "2") {//ir a página siguiente
        $("input[id$=_hid_ENVIAR]").val('N');
    } else if (flag_operacion == "3") {// envíar formulario
        $("input[id$=_hid_ENVIAR]").val('S');
    }
    }
    $("input[id$=_hid_OPERACION]").val(flag_operacion);
    $("input[id$=_hid_SUB_CODIGO_ACTUAL]").val(id);
    __doPostBack('ctl00$PortalPlaceHolder$ctl00$btn_Enviar','');
}

function funcion7(obj)
{
    resetCondicionados("c_42");
    var cmb_profesion=document.forms[0].LST_11_41;
    if(cmb_profesion!=null){
    if (cmb_profesion.options[cmb_profesion.selectedIndex].value=="Otros"){
        verElemento("tr_42",1);
        document.getElementById("hid_valida_42").value='R';
    }
    }
}function funcion8(obj)
{
    resetCondicionados("c_45");
    var cmb_especializacion=document.forms[0].LST_11_44;
    if(cmb_especializacion!=null){
    if (cmb_especializacion.options[cmb_especializacion.selectedIndex].value=="Otros"){
        verElemento("tr_45",1);
        document.getElementById("hid_valida_45").value='R';
    }
    }
}function funcion1(obj)
{
    resetCondicionados("c_77");
    var rdbut_experiencialab=document.forms[0].LST_13_76;
    if (getSelectedRadioValue(rdbut_experiencialab)=="Sí"){
        verElemento("tr_77",1);
        document.getElementById("hid_valida_77").value='R';
    }
}function funcion2(obj)
{
    resetCondicionados("c_83");
    var cmbo_cargoejecutiv=document.forms[0].LST_13_82;
    if(cmbo_cargoejecutiv!=null){
    if (cmbo_cargoejecutiv.options[cmbo_cargoejecutiv.selectedIndex].value=="Otro Profesional"){
        verElemento("tr_83",1);
        document.getElementById("hid_valida_83").value='R';
    }
    }
}function funcion3(obj)
{
    resetCondicionados("c_85");
    var cmbo_cargonoejecut=document.forms[0].LST_13_84;
    if(cmbo_cargonoejecut!=null){
    if (cmbo_cargonoejecut.options[cmbo_cargonoejecut.selectedIndex].value=="Otro"){
        verElemento("tr_85",1);
        document.getElementById("hid_valida_85").value='R';
    }
    }
}
