//---------------------PRIVATE VARS------------------------------------/ var cookieMode=0; //---------------------PUBLIC VARS------------------------------------/ browser.loadedLibs[browser.loadedLibs.length]="vars.js"; var HTTP_GET_VARS= new Array(); var HTTP_COOKIE_VARS= new Array(); if(browser.IE){ _ieAdd(); } if (browser.isCookie){ HTTP_COOKIE_VARS=_parseCookie(cookieMode); } if (location.search!=""){ HTTP_GET_VARS=_parseSearch(location.search.toString().substring(location.search.toString().indexOf("?")+1,location.search.toString().length)); } //-----------------------------OBJECTS---------------------------------/ var Vars = new VarsObj(); function VarsObj(){ this.search=HTTP_GET_VARS; this.cookie=HTTP_COOKIE_VARS; this.cookieMode=_setCookieMode; this.setCookie=_setCookie; this.getVars=_parseSearch; this.array=_createArray; this.defined=_defined; this.hex2dec=Hex2Dec; } //----------------------------PRIVATE FUNC---------------------------------/ function _createArray(){ if(!isNaN(arguments[0])){ name1="multiArray"; var count=0; } else{ var name1=arguments[0]; var count=1; } eval(name1 +'= new Array('+arguments[count]+')'); if(arguments[count+1]!=null){ var args=""; for(var i1=count+1;i157)&&(ascS<65))||((ascS>90)&&(ascS<97))||(ascS>122)){ result=result+"%"+getHex(ascS); } else{ result=result+str.charAt(i); } } } else{ result=escape(str); } return result; } function escapeAsPHP(str){ var result=""; if (browser.shortName=="IExplorer"){ for (var i=0;i57)&&(ascS<65))||((ascS>90)&&(ascS<97))||(ascS>122)){ result=result+"%"+getHex(ascS); } else{ result=result+str.charAt(i); } } } } else{ for (i=0;i'); document.write('Function getHex(num)'); document.write('getHex=hex(num)'); document.writeln('end Function'); document.write('Function getChr(num)'); document.write('getChr=chr(num)'); document.writeln('end Function'); document.write('Function getAsc(str)'); document.write('getAsc=asc(str)'); document.write('end Function'); document.write(''); } }