function fValidar(id,flag_operacion){
    // Varibles de campos y secciones
    var tr_sec_32=document.getElementById("tr_sec_32");
    var tr_sec_33=document.getElementById("tr_sec_33");
    var tr_sec_34=document.getElementById("tr_sec_34");
    var tr_sec_35=document.getElementById("tr_sec_35");
    var tr_sec_36=document.getElementById("tr_sec_36");
    var cmb_modalidad=document.forms[0].LST_32_197;
    var txt_apepaterno=document.getElementById("TXT_APEPATERNO");
    var txt_apematerno=document.getElementById("TXT_APEMATERNO");
    var txt_nombre=document.getElementById("TXT_NOMBRE");
    var cmbo_tipodoc=document.forms[0].LST_32_201;
    var txt_numerodoc=document.getElementById("TXT_NUMERODOC");
    var txt_fechanac=document.getElementById("TXT_FECHANAC");
    var cmbo_estacivil=document.forms[0].LST_32_204;
    var cmbo_paisorigen=document.forms[0].LST_32_205;
    var sexo=document.forms[0].LST_32_206;
    var txt_direccion=document.getElementById("TXT_DIRECCION");
    var txt_distrito=document.getElementById("TXT_DISTRITO");
    var txt_provincia=document.getElementById("TXT_PROVINCIA");
    var cmbo_departamento=document.forms[0].LST_32_210;
    var cmbo_paisresidenc=document.forms[0].LST_32_211;
    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_33_215;
    var cmb_gradotituloobten=document.forms[0].LST_33_216;
    var cmb_institucion=document.getElementById("CMB_INSTITUCION");
    var cmb_profesion=document.forms[0].LST_33_218;
    var txt_profesionotro=document.getElementById("TXT_PROFESIONOTRO");
    var txt_ultimoanocursado=document.getElementById("TXT_ULTIMOANOCURSADO");
    var cmb_especializacion=document.forms[0].LST_33_230;
    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_34_235;
    var radbut_idioma1lectur=document.forms[0].LST_34_236;
    var radbut_idioma1conver=document.forms[0].LST_34_237;
    var radbut_idioma1escrit=document.forms[0].LST_34_238;
    var cmb_idioma2=document.forms[0].LST_34_239;
    var radbut_idioma1lectur=document.forms[0].LST_34_240;
    var radbut_idioma2conver=document.forms[0].LST_34_241;
    var radbut_idioma2escrit=document.forms[0].LST_34_242;
    var cmb_idioma3=document.forms[0].LST_34_243;
    var radbut_idioma3lectur=document.forms[0].LST_34_244;
    var radbut_idioma3conver=document.forms[0].LST_34_245;
    var radbut_idioma3escrit=document.getElementById("RADBUT_IDIOMA3ESCRIT");
    var cmb_windows=document.forms[0].LST_34_247;
    var cmb_word=document.forms[0].LST_34_248;
    var cmb_excel=document.forms[0].LST_34_249;
    var cmb_powerpoint=document.forms[0].LST_34_250;
    var cmb_visualbasic=document.forms[0].LST_34_251;
    var cmb_project=document.forms[0].LST_34_252;
    var cmb_access=document.forms[0].LST_34_253;
    var cmb_illustrator=document.forms[0].LST_34_254;
    var cmb_photoshop=document.forms[0].LST_34_255;
    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_cursocomp3=document.getElementById("TXT_CURSOCOMP3");
    var rdbut_experiencialab=document.forms[0].LST_35_262;
    var txt_experiencialabor=document.getElementById("TXT_EXPERIENCIALABOR");
    var txt_empresa=document.getElementById("TXT_EMPRESA");
    var cmb_actividaempresa=document.forms[0].LST_35_265;
    var txt_profesionotro=document.getElementById("TXT_PROFESIONOTRO");
    var txt_mesanotermino=document.getElementById("TXT_MESANOTERMINO");
    var cmbo_cargoejecutiv=document.forms[0].LST_35_268;
    var txt_cargoejecutivotr=document.getElementById("TXT_CARGOEJECUTIVOTR");
    var cmbo_cargonoejecut=document.forms[0].LST_35_270;
    var txt_cargonoejecutotr=document.getElementById("TXT_CARGONOEJECUTOTR");
    var txt_monto=document.getElementById("TXT_MONTO");
    var cmbo_moneda=document.forms[0].LST_35_273;
    var cmbo_periodopago=document.forms[0].LST_35_274;
    var cmbo_formapago=document.forms[0].LST_35_275;
    var upload_curriculum=document.getElementById("UPLOAD_CURRICULUM");

    if (flag_operacion != "1") {//no ir a página anterior
    // validar formulario
    if(tr_sec_32!=null){
    if (esVisible('tr_sec_32')){
    if (document.getElementById("hid_valida_197").value=="R"){
    if(cmb_modalidad!=null){
    if (cmb_modalidad.options[cmb_modalidad.selectedIndex].value==-1){
        alert("Ingrese el modalidad:");
        cmb_modalidad.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_198").value=="R"){
    if(txt_apepaterno!=null){
    if (!trim(txt_apepaterno.value)){
        alert("Ingrese el apellidos paterno");
        txt_apepaterno.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_199").value=="R"){
    if(txt_apematerno!=null){
    if (!trim(txt_apematerno.value)){
        alert("Ingrese el apellidos materno");
        txt_apematerno.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_200").value=="R"){
    if(txt_nombre!=null){
    if (!trim(txt_nombre.value)){
        alert("Ingrese el nombre");
        txt_nombre.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_201").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_202").value=="R"){
    if(txt_numerodoc!=null){
    if (!trim(txt_numerodoc.value)){
        alert("Ingrese el número");
        txt_numerodoc.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_203").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_203").value=="N"){
    var txt_fechanac=document.getElementById("TXT_FECHANAC");
    if(txt_fechanac!=null){
    if (trim(txt_fechanac.value)){
    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_204").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_205").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_206").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_207").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_208").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_209").value=="R"){
    if(txt_provincia!=null){
    if (!trim(txt_provincia.value)){
        alert("Ingrese el provincias");
        txt_provincia.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_210").value=="R"){
    if(cmbo_departamento!=null){
    if (cmbo_departamento.options[cmbo_departamento.selectedIndex].value==-1){
        alert("Ingrese el departamento");
        cmbo_departamento.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_211").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_212").value=="R"){
    if(txt_fonocasa!=null){
    if (!trim(txt_fonocasa.value)){
        alert("Ingrese el teléfono de 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_212").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_213").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_213").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_214").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_214").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_33!=null){
    if (esVisible('tr_sec_33')){
    if (document.getElementById("hid_valida_215").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_216").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_217").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_218").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_219").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_220").value=="R"){
    if(txt_ultimoanocursado!=null){
    if (!trim(txt_ultimoanocursado.value)){
        alert("Ingrese el ultimo año cursado");
        txt_ultimoanocursado.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_230").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_231").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_232").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_233").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_234").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_34!=null){
    if (esVisible('tr_sec_34')){
    if (document.getElementById("hid_valida_235").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_236").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_237").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_238").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_239").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_240").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_241").value=="R"){
    if(radbut_idioma2conver!=null){
    if (radbut_idioma2conver.options[radbut_idioma2conver.selectedIndex].value==-1){
        alert("Ingrese el - conversación");
        radbut_idioma2conver.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_242").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_243").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_244").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_245").value=="R"){
    if(radbut_idioma3conver!=null){
    if (radbut_idioma3conver.options[radbut_idioma3conver.selectedIndex].value==-1){
        alert("Ingrese el - conversación");
        radbut_idioma3conver.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_246").value=="R"){
    if(radbut_idioma3escrit!=null){
    if (!trim(radbut_idioma3escrit.value)){
        alert("Ingrese el - escritura");
        radbut_idioma3escrit.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_247").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_248").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_249").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_250").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_251").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_252").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_253").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_254").value=="R"){
    if(cmb_illustrator!=null){
    if (cmb_illustrator.options[cmb_illustrator.selectedIndex].value==-1){
        alert("Ingrese el iiiustrator");
        cmb_illustrator.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_255").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_256").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_257").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_258").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_259").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_260").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_261").value=="R"){
    if(txt_cursocomp3!=null){
    if (!trim(txt_cursocomp3.value) || txt_cursocomp3.value.toLowerCase()=="3"){
        alert("Ingrese valor");
        txt_cursocomp3.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }
    // validar formulario
    if(tr_sec_35!=null){
    if (esVisible('tr_sec_35')){
    if (document.getElementById("hid_valida_262").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_263").value=="R"){
    if(txt_experiencialabor!=null){
    if (!trim(txt_experiencialabor.value)){
        alert("Ingrese el (años de experiencia)");
        txt_experiencialabor.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_264").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_265").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_266").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_267").value=="R"){
    if(txt_mesanotermino!=null){
    if (!trim(txt_mesanotermino.value)){
        alert("Ingrese el mes y año de termino");
        txt_mesanotermino.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_268").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_269").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_270").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_271").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_272").value=="R"){
    if(txt_monto!=null){
    if (!trim(txt_monto.value)){
        alert("Ingrese el monto");
        txt_monto.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_273").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_274").value=="R"){
    if(cmbo_periodopago!=null){
    if (cmbo_periodopago.options[cmbo_periodopago.selectedIndex].value==-1){
        alert("Ingrese el periodo pago");
        cmbo_periodopago.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    if (document.getElementById("hid_valida_275").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_36!=null){
    if (esVisible('tr_sec_36')){
    if (document.getElementById("hid_valida_276").value=="R"){
    if(upload_curriculum!=null){
    if (!trim(upload_curriculum.value)){
        alert("Ingrese el puedes ingresar tu cv aqui:");
        upload_curriculum.focus();
        return false;
    }
    }
    }// end if hid_valida_...
    }
    }

    // Asigna texto a valor de listas
    if(cmb_modalidad!=null) document.getElementById("hid_lista_197").value=cmb_modalidad.options[cmb_modalidad.selectedIndex].text;
    if(cmbo_tipodoc!=null) document.getElementById("hid_lista_201").value=cmbo_tipodoc.options[cmbo_tipodoc.selectedIndex].text;
    if(cmbo_estacivil!=null) document.getElementById("hid_lista_204").value=cmbo_estacivil.options[cmbo_estacivil.selectedIndex].text;
    if(cmbo_paisorigen!=null) document.getElementById("hid_lista_205").value=cmbo_paisorigen.options[cmbo_paisorigen.selectedIndex].text;
    if(sexo!=null) document.getElementById("hid_lista_206").value=sexo.options[sexo.selectedIndex].text;
    if(cmbo_departamento!=null) document.getElementById("hid_lista_210").value=cmbo_departamento.options[cmbo_departamento.selectedIndex].text;
    if(cmbo_paisresidenc!=null) document.getElementById("hid_lista_211").value=cmbo_paisresidenc.options[cmbo_paisresidenc.selectedIndex].text;
    if(cmb_maxinivelalcanz!=null) document.getElementById("hid_lista_215").value=cmb_maxinivelalcanz.options[cmb_maxinivelalcanz.selectedIndex].text;
    if(cmb_gradotituloobten!=null) document.getElementById("hid_lista_216").value=cmb_gradotituloobten.options[cmb_gradotituloobten.selectedIndex].text;
    if(cmb_profesion!=null) document.getElementById("hid_lista_218").value=cmb_profesion.options[cmb_profesion.selectedIndex].text;
    if(cmb_especializacion!=null) document.getElementById("hid_lista_230").value=cmb_especializacion.options[cmb_especializacion.selectedIndex].text;
    if(cmb_idioma1!=null) document.getElementById("hid_lista_235").value=cmb_idioma1.options[cmb_idioma1.selectedIndex].text;
    if(radbut_idioma1lectur!=null) document.getElementById("hid_lista_236").value=getSelectedRadioText(radbut_idioma1lectur);
    if(radbut_idioma1conver!=null) document.getElementById("hid_lista_237").value=getSelectedRadioText(radbut_idioma1conver);
    if(radbut_idioma1escrit!=null) document.getElementById("hid_lista_238").value=getSelectedRadioText(radbut_idioma1escrit);
    if(cmb_idioma2!=null) document.getElementById("hid_lista_239").value=cmb_idioma2.options[cmb_idioma2.selectedIndex].text;
    if(radbut_idioma1lectur!=null) document.getElementById("hid_lista_240").value=getSelectedRadioText(radbut_idioma1lectur);
    if(radbut_idioma2conver!=null) document.getElementById("hid_lista_241").value=radbut_idioma2conver.options[radbut_idioma2conver.selectedIndex].text;
    if(radbut_idioma2escrit!=null) document.getElementById("hid_lista_242").value=getSelectedRadioText(radbut_idioma2escrit);
    if(cmb_idioma3!=null) document.getElementById("hid_lista_243").value=cmb_idioma3.options[cmb_idioma3.selectedIndex].text;
    if(radbut_idioma3lectur!=null) document.getElementById("hid_lista_244").value=getSelectedRadioText(radbut_idioma3lectur);
    if(radbut_idioma3conver!=null) document.getElementById("hid_lista_245").value=radbut_idioma3conver.options[radbut_idioma3conver.selectedIndex].text;
    if(cmb_windows!=null) document.getElementById("hid_lista_247").value=cmb_windows.options[cmb_windows.selectedIndex].text;
    if(cmb_word!=null) document.getElementById("hid_lista_248").value=cmb_word.options[cmb_word.selectedIndex].text;
    if(cmb_excel!=null) document.getElementById("hid_lista_249").value=cmb_excel.options[cmb_excel.selectedIndex].text;
    if(cmb_powerpoint!=null) document.getElementById("hid_lista_250").value=cmb_powerpoint.options[cmb_powerpoint.selectedIndex].text;
    if(cmb_visualbasic!=null) document.getElementById("hid_lista_251").value=cmb_visualbasic.options[cmb_visualbasic.selectedIndex].text;
    if(cmb_project!=null) document.getElementById("hid_lista_252").value=cmb_project.options[cmb_project.selectedIndex].text;
    if(cmb_access!=null) document.getElementById("hid_lista_253").value=cmb_access.options[cmb_access.selectedIndex].text;
    if(cmb_illustrator!=null) document.getElementById("hid_lista_254").value=cmb_illustrator.options[cmb_illustrator.selectedIndex].text;
    if(cmb_photoshop!=null) document.getElementById("hid_lista_255").value=cmb_photoshop.options[cmb_photoshop.selectedIndex].text;
    if(rdbut_experiencialab!=null) document.getElementById("hid_lista_262").value=getSelectedRadioText(rdbut_experiencialab);
    if(cmb_actividaempresa!=null) document.getElementById("hid_lista_265").value=cmb_actividaempresa.options[cmb_actividaempresa.selectedIndex].text;
    if(cmbo_cargoejecutiv!=null) document.getElementById("hid_lista_268").value=cmbo_cargoejecutiv.options[cmbo_cargoejecutiv.selectedIndex].text;
    if(cmbo_cargonoejecut!=null) document.getElementById("hid_lista_270").value=cmbo_cargonoejecut.options[cmbo_cargonoejecut.selectedIndex].text;
    if(cmbo_moneda!=null) document.getElementById("hid_lista_273").value=cmbo_moneda.options[cmbo_moneda.selectedIndex].text;
    if(cmbo_periodopago!=null) document.getElementById("hid_lista_274").value=cmbo_periodopago.options[cmbo_periodopago.selectedIndex].text;
    if(cmbo_formapago!=null) document.getElementById("hid_lista_275").value=cmbo_formapago.options[cmbo_formapago.selectedIndex].text;

   // Limpiar texto de ayuda

    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_cursocomp3!=null){
    if (txt_cursocomp3.value.toLowerCase()=="3"){
        txt_cursocomp3.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("");
}function funcion8(obj)
{
    resetCondicionados("");
}function funcion1(obj)
{
    resetCondicionados("c_263");
    var rdbut_experiencialab=document.forms[0].LST_35_262;
    if (getSelectedRadioValue(rdbut_experiencialab)=="Sí"){
        verElemento("tr_263",1);
        document.getElementById("hid_valida_263").value='R';
    }
}function funcion2(obj)
{
    resetCondicionados("");
}function funcion3(obj)
{
    resetCondicionados("");
}
