function RSExecute(url,method) { var cb, ecb, context; var params = new Array; var pn = 0; var len = RSExecute.arguments.length; for (var i=2; i < len; i++) params[pn++] = RSExecute.arguments[i]; return DoWork(url,method,params); } function DoWork(url,method,param_list) { var codebase = ''; var pBuffer = ''; var pLen = param_list.length; if(pLen > 0) { for(var z=0;z < pLen; z++) pBuffer += '&p'+z+'='+param_list[z]; } var secondSlash, path; codebase = ''; if ((secondSlash = (path = window.location.pathname).indexOf('/',1)) != -1) codebase = window.document.domain+'/'+path.substring(0,secondSlash)+ '/'+url+'?'+'f='+method+pBuffer; var rsObject = new ActiveXObject('iRemote.clsRS'); rsObject.strURL = codebase; var retVal = rsObject.RSExecute(); return retVal; //alert(codebase); }