var xmlHttp;var xmlHttpDepe;var validacion=0;var size_html_ant=0;function GetXmlHttpObject() {var xmlHttp=null;try {xmlHttp=new XMLHttpRequest();} catch(e) {try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}} return xmlHttp;} function GetXmlHttpObjectDepen() {var xmlHttpDepe=null;try {xmlHttpDepe=new XMLHttpRequest();} catch(e) {try {xmlHttpDepe=new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {xmlHttpDepe=new ActiveXObject("Microsoft.XMLHTTP");}} return xmlHttpDepe;} function procesos() {xmlHttp=GetXmlHttpObject() if(xmlHttp==null){alert("Your browser does not support AJAX!");return;} jQuery("#exter").val("");jQuery("#paramLista").val("");var cadena=$("#formOperacion").serialize();cadena+="&"+$("#formOperacion").serializeDisabled();var url="../phrame.php?";url+=cadena;url+="&metodo=procesos";url+="&action=metodo_ajax";xmlHttp.onreadystatechange=proceso_siguiente;xmlHttp.open("GET",url,true);xmlHttp.send(null);} function proceso_siguiente() {if(xmlHttp.readyState==4) {if(document.forma.ACTV_NUMERO_ACTUAL.value!=""){var n=document.forma.ACTV_NUMERO.length;for(var i=0;i');}else{id_objeto=$("#id_objeto").val();valor_asociado=$("#"+campo_origen).val();$("#"+campo_destino).empty();$("#"+campo_destino).append('');} $.ajax({type:'post',url:'phrame.php',data:"action=metodo_ajax&metodo=generarDependen&obje_numero="+id_objeto+"&valor="+valor_asociado+"&campo_destino="+campo_destino,success:function(res){var resultado=res;var lista;var lista_resul;if(res.indexOf("----")!=-1){showAlert(res,'','#4B69C3','fa fa-file-code-o',function(){resultado=res.replace(/\t/g,'');if(resultado!=""){lista=resultado.split(":::");for(i=0;i'+lista_resul[1]+'');}else{$("#"+campo_destino).append('');}}}}});}else{resultado=res.replace(/\t/g,'');if(resultado!=""){lista=resultado.split(":::");for(i=0;i'+lista_resul[1]+'');}else{$("#"+campo_destino).append('');}}}}} if(emergente!=""&&typeof emergente!='undefined'){window.returnValue=true;window.close();}}});} function clienteAjax(clase,metodo,url,funcion,modal) {var resultado;var valor;var asign;$.ajax({type:'post',url:'phrame.php',data:"action=metodo_ajax&metodo=clienteAjax&clase="+clase+"&metodo_ejec="+metodo+url,success:function(res){resultado=res;if(res.indexOf("----")!=-1){showAlert(res,'','#4B69C3','fa fa-file-code-o',function(){resultado=res.replace(/\t/g,'');if(resultado.indexOf("alerta")!=-1){valor=resultado.split(":::");showAlert(valor[1],'','#FF0000','fa fa-exclamation-triangle');if(valor[2]!=""){eval(valor[2]);}}else if(resultado!=""){valor=resultado.split(":::");for(i=0;i');$('#tr_alerta_expira').show();unloading_personal();}}else{window.location=lista[1];}}});}