PageSourceSearch

https://seu.corberadellobregat.cat/js/eatiende.js

js corberadellobregat.cat collected 2026-10-02 11:25:56 UTC 5,964 bytes, 23 lines download raw bytes

1function ImprimirForm(formulario){var actionForm;actionForm=formulario.action;if(actionForm.indexOf("?imp=S")==-1){formulario.action+="?imp=S";}
2if(top.location!=location){showElements(parent.main.Event,formulario);}else{showElements(parent.Event,formulario);}
3formulario.action=actionForm;}
4var ParVarSesion;var entornoABS;var surl;var ParSession="sesionId";var ParUnidad="unidad";var ParVarSecretaria="SEC";var ParIdioma="idioma";var ParVarIdioma="S";var ParProducto="producto";var ParVarRegistro="REG";var ParLISAPLICA="LISAPLICA";var ParVarLISAPLICA="015114";var ParLISIDNODO="LISIDNODO";var ParVarLISIDNODO="";var ParLISCODENT="LISCODENT";var ParVarLISCODENT="";var ParModo="modo";var MODO_SELLADO_USUARIO=2;var MODO_SELLADO_SELLOSTD=2;var ParFiltro="filtro";var ParVarFiltro="";var ParCopia="copias";var ParVarCopia="1";var ParCopias="copias";var ParVarNCopias="1";var ParSello="sello";var ParVarContenido="contenido";var ParVarModo="modo";function sellarCopiaTramite(){try{PonerRelojEspera();PonerCortinaEspera("Sellando Documento...");var weburl;weburl=obtenerWEBURLXML();if(weburl.getElementsByTagName("WEBURL")[0].getAttribute('entorno').toUpperCase()=='PRO'){entornoABS=weburl.getElementsByTagName("WEBURL")[0].getAttribute('entornoABS');if(AbrirImpresor(entornoABS)){}else{}}else{if(weburl.getElementsByTagName("WEBURL")[0].getAttribute('entorno').toUpperCase()=='EMI'){}else{}}
5setTimeout("QuitarCortinaEspera()",4000);}catch(ex){setTimeout("QuitarCortinaEspera()",4000);alert(ex.message);}}
6function obtenerWEBURLXML(){if(window.XMLHttpRequest){xhttp=new XMLHttpRequest();}else{xhttp=new ActiveXObject("Microsoft.XMLHTTP");}
7xhttp.open("GET","../../config/weburl.xml",false);xhttp.send();return xhttp.responseXML;}
8function getSessionId(entornoABS,bCodificada){var sURL,idsesion;try{sURL="../../forms_base/CrearSesionCodificada.asp"
9if(NavegadorIE()){xmlHttpReq=new ActiveXObject("MSXML2.XMLHTTP");xmlHttpReq.open("POST",sURL,false);xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttpReq.send();}else{xmlHttpReq=new XMLHttpRequest();xmlHttpReq.open("POST",sURL,false);xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttpReq.send();}
10idsesion=xmlHttpReq.responseText;if(!bCodificada){idsesion=idsesion.split("|")[0];}else{idsesion=idsesion.split("|")[1];}}catch(ex){alert(ex.message);}
11return idsesion;}
12function getIdAnotacion(idSesionCodificada){var sURL,oAnotacion,TIPLIB,ANOANO,NUMERO,params,ANONUMINT,xmlDoc;try{sURL="../../forms_base/ObtenerNumIntAnotacion.asp"
13if(document.getElementById("WRETIPLIB")!=undefined){TIPLIB=document.getElementById("WRETIPLIB").value;}else{if(document.getElementById("WRSTIPLIB")!=undefined){TIPLIB=document.getElementById("WRSTIPLIB").value;}else{TIPLIB="";}}
14if(document.getElementById("WREANOANO")!=undefined){ANOANO=document.getElementById("WREANOANO").value;}else{if(document.getElementById("WRSANOANO")!=undefined){ANOANO=document.getElementById("WRSANOANO").value;}else{ANOANO="";}}
15if(document.getElementById("WRENUMERO")!=undefined){NUMERO=document.getElementById("WRENUMERO").value;}else{if(document.getElementById("WRSNUMERO")!=undefined){NUMERO=document.getElementById("WRSNUMERO").value;}else{NUMERO="";}}
16params="?TIPLIB="+TIPLIB+"&ANOANO="+ANOANO+"&NUMERO="+NUMERO+"&idSesionCodificada="+idSesionCodificada;if(NavegadorIE()){xmlHttpReq=new ActiveXObject("MSXML2.XMLHTTP");xmlHttpReq.open("GET",sURL+params,false);xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttpReq.send();oAnotacion=xmlHttpReq.responseText;if(jQuery(oAnotacion).find('ANONUMINT').length>0){ANONUMINT=jQuery(oAnotacion).find('ANONUMINT').text();}else{ANONUMINT="";}}else{xmlHttpReq=new XMLHttpRequest();xmlHttpReq.open("GET",sURL+params,false);xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttpReq.send();var parser=new DOMParser();xmlDoc=parser.parseFromString(xmlHttpReq.responseText,"text/xml");if(xmlDoc!=undefined&&xmlDoc.documentElement!=undefined&&jQuery(xmlDoc.documentElement)!=undefined&&jQuery(jQuery(xmlDoc.documentElement)[0]).find("ANONUMINT").length!=undefined){ANONUMINT=jQuery(jQuery(xmlDoc.documentElement)[0]).find("ANONUMINT")[0].textContent;}else{ANONUMINT="";}}
17return ANONUMINT;}catch(ex){alert(ex.message);}}
18function AbrirImpresor(entornoABS){if(MODO_SELLADO_USUARIO!=""){var sIdSessionCodificado=getSessionId(entornoABS,true);var sIdAnotacion=getIdAnotacion(sIdSessionCodificado);var contenido=getTextoSello(sIdSessionCodificado,sIdAnotacion);if(contenido!=""){surl='/absis/idi/cco/idiccoimpr/vis/impresor.application'+'?'
19surl=surl+ParSession+'='+sIdSessionCodificado+'&';surl=surl+ParModo+'='+MODO_SELLADO_USUARIO+'&';surl=surl+ParLISAPLICA+'='+ParVarLISAPLICA+'&';surl=surl+ParIdioma+'='+ParVarIdioma+'&';surl=surl+ParUnidad+'='+ParVarSecretaria+'&';surl=surl+ParProducto+'='+ParVarRegistro+'&';surl=surl+ParLISIDNODO+'='+ParVarLISIDNODO+'&';surl=surl+ParCopia+'='+ParVarCopia+'&';surl=surl+ParLISCODENT+'='+ParVarLISCODENT+'&';surl=surl+ParSello+'='+contenido+'&';surl=surl+'t='+Math.random();window.open(surl,"","width=1,height=1,scrollbars=NO,Resizable=NO,Top=1,Left=1,MenuBar=No,Location=No");return true;}}else{return false;}}
20function getTextoSello(sIdSession,sIdAnotacion){try{var url="/absis/sec/reg/secregrent/ajxComun/ajxgettextosello.aspx";var req=null;var params;req=getXmlHTTP();req.open("POST",url,false);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");params="sesionId="+sIdSession;params+="&ANONUMINT="+sIdAnotacion;req.send(params);return req.responseText;}catch(ex){alert(ex.message);}}
21function getXmlHTTP(){var xmlHttp;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert("Your browser does not support AJAX! In order to use this site please have Java Enabled")
22return false;}}}
23return xmlHttp;}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.