function guardaPreinscripcionAJAX(){esperaMientras();dojo.xhrPost({url:"FV_ValidacionAjax.jsp?ACCION=GUARDARPREINSCRIPCION",load:function(a){terminaEspera();a=trim(a);if(a.substring(0,5)!="ERROR"){document.getElementsByTagName("CENTER")[0].innerHTML=a;if(typeof(window.planReturn)=="function"){if(planReturn()==false){alert("NO SE PUDO CAMBIAR DE PLAN\nCOMUNICATE AL CENTRO DE ATENCION")}}}else{alert(a)}},error:ProcesaError,timeout:80000,form:"frmReinscripcion"})}function ProcesaError(a){alert("ERROR:"+a)}function esperaMientras(){var a=dijit.byId("espera");if(a!=null){a.show()}}function terminaEspera(){var a=dijit.byId("espera");if(a!=null){a.hide()}}function muestraMensajeError(c,a){var b=dijit.byId("dialogoGenerico");if(b!=null){if(a!=null){b.title=a}else{b.title="ERROR"}document.getElementById("divDialogGenerico").innerHTML=c;b.show()}}function guardainscripcion(){esperaMientras("GUARDANDO LA INFORMACION");dojo.xhrPost({url:"Inscripcion.jsp?ACCION=INSCRIPCION",load:function(a){a=trim(a);if(a.substring(0,5)!="ERROR"){document.FRMINSCRIPCION.submit()}else{alert(a)}},error:ProcesaError,timeout:80000,form:"FRMINSCRIPCION"})}function val(){esperaMientras();dojo.xhrPost({url:"FV_ValidacionAjaxalt.jsp?ACCION=VALPRECLI&CATALOGO=154",load:function(a){terminaEspera();a=trim(a);if(a.substring(0,5)!="ERROR"){esperaMientras();val2()}else{alert(a)}},error:ProcesaError,timeout:80000,form:"frmReinscripcion"})}function val2(){dojo.xhrPost({url:"FV_ValidacionAjaxalt.jsp?ACCION=VALPRECLI&CATALOGO=178",load:function(a){terminaEspera();a=trim(a);if(a.substring(0,5)!="ERROR"){esperaMientras();val3()}else{alert(a)}},error:ProcesaError,timeout:80000,form:"frmReinscripcion"})}function val3(){dojo.xhrPost({url:"FV_ValidacionAjaxalt.jsp?ACCION=VALPRECLI&CATALOGO=179",load:function(a){terminaEspera();a=trim(a);if(a.substring(0,5)!="ERROR"){guardaPreinscripcionAJAX()}else{alert(a)}},error:ProcesaError,timeout:80000,form:"frmReinscripcion"})}function guardaingresoPrev(){esperaMientras("GUARDANDO LA INFORMACION");dojo.xhrPost({url:"FV_IngresosPrev.jsp?ACCION=INSCRIPCION",load:function(a){a=trim(a);if(a.substring(0,5)!="ERROR"){document.FRMINSCRIPCION.submit()}else{alert(a)}},error:ProcesaError,timeout:80000,form:"FRMINSCRIPCION"})};