function addEventObject2(o, evento, callbackFunction, bubble) { if(isMSIE()) { o.attachEvent(evento, callbackFunction); } else { if(evento.indexOf('on')==0) { evento = evento.substr(2); } o.addEventListener(evento, callbackFunction, bubble); } } function isMSIE2() { return (navigator.appName == "Microsoft Internet Explorer"); } function remote_onLoad() { var oHead = document.getElementsByTagName('head'); if(oHead.length>0) { var scriptTag = document.createElement('script'); scriptTag.setAttribute('type', 'text/javascript'); scriptTag.setAttribute('id', 'remote_result'); oHead.item(0).appendChild(scriptTag); } } function remote_replace() { var o = document.getElementById('remote_result'); var oHead = document.getElementsByTagName('head'); if(o.src.length>0) { var scriptTag = document.createElement('script'); scriptTag.setAttribute('type', 'text/javascript'); scriptTag.setAttribute('id', 'remote_result'); oHead.item(0).replaceChild(scriptTag, o); } } function remote_callFunction(functionName, arrArguments) { remote_replace(); var o = document.getElementById('remote_result'); if(o) { var strArguments = ''; for(var i=0; i< arrArguments.length; i++) { strArguments += (i>0?'|':'') + arrArguments[i]; } o.setAttribute('src', '/js/rs_art.functions.asp?functionName=' + functionName + '&strArguments=' + strArguments); } } addEventObject2(window, 'onload', remote_onLoad, false) function remote_comboClear() { remote_callFunction('remote_comboClear', arguments); } function remote_llenarLocalidades() { remote_callFunction('remote_llenarLocalidades', arguments); }