(function(){thsLgl=external.createObject("Lgl")})();ThsHttpRequest=function(){var F=null,B=null,E=0,D="",C=function(){F=null;B=null;E=0},A=function(){thsAjax.cancel(E);D="timeout";if(typeof B.onfail=="function")B.onfail();C()},$=function(){if(F!=null){clearTimeout(F);F=null}},_=function(_){$();if(B!=null&&typeof B._onready=="function")B._onready(_);C()};return{"request":function($){if(B!=null){D="busy";return false}$._onready=$.onready;$.onready=_;B=$;F=setTimeout(function(){A()},2000);E=thsAjax.request($);return E!=0},"getServer":function($){return thsAjax.getServer($)},"lastError":function(){return D}}};FileStreamInput=function(){var $=external.createObject("FileInputStream");return{"open":function(_){return $.open(_)},"read":function(){return $.read()},"close":function(){$.close()}}};FileStreamOutput=function(){var $=external.createObject("FileOutputStream");return{"open":function(_){return $.open(_)},"write":function(_){return $.write(_)},"close":function(){$.close()}}};Passport=function(){return{"selfStocks":function(){try{return thsPassport.selfStocks()}catch($){}return false},"holdStocks":function(){try{return eval(thsPassport.holdStocks())}catch(e){}return false},"holdIndustries":function(){try{return thsPassport.holdIndustries().split(",")}catch($){}return false},"ppValue":function($){return thsPassport.getValue($)},"ppSignature":function($){return thsPassport.getSignature($)},"ppGetValue":function($){return thsPassport.get($)}}};var destroyThsengine=function(){thsAjax=null;thsQuote=null;thsPassport=null;thsUtil=null;ThsHttpRequest=null;FileStreamInput=null;FileStreamOutput=null;Passport=null}