// cached javascript var AjaxMethod = { CheckRegName:function(userName,callback,context){return new ajax_request(this.url + '?_method=CheckRegName&_session=no','userName=' + enc(userName),callback, context);}, GetGamelist:function(callback,context){return new ajax_request(this.url + '?_method=GetGamelist&_session=no','',callback, context);}, GetServerList:function(GameID,callback,context){return new ajax_request(this.url + '?_method=GetServerList&_session=no','GameID=' + enc(GameID),callback, context);}, GetAmountList:function(GameID,callback,context){return new ajax_request(this.url + '?_method=GetAmountList&_session=no','GameID=' + enc(GameID),callback, context);}, GetPrice:function(ServerID,num,current,callback,context){return new ajax_request(this.url + '?_method=GetPrice&_session=no','ServerID=' + enc(ServerID)+ '\r\nnum=' + enc(num)+ '\r\ncurrent=' + enc(current),callback, context);}, PostToOrderPage:function(ServerID,Amount,callback,context){return new ajax_request(this.url + '?_method=PostToOrderPage&_session=no','ServerID=' + enc(ServerID)+ '\r\nAmount=' + enc(Amount),callback, context);}, LoadProductList:function(GameID,ServerName,GameTypeName,CurrencySign,Qty,callback,context){return new ajax_request(this.url + '?_method=LoadProductList&_session=no','GameID=' + enc(GameID)+ '\r\nServerName=' + enc(ServerName)+ '\r\nGameTypeName=' + enc(GameTypeName)+ '\r\nCurrencySign=' + enc(CurrencySign)+ '\r\nQty=' + enc(Qty),callback, context);}, showSelectProcuct:function(GameID,ServerName,GameTypeName,CurrencySign,Qty,callback,context){return new ajax_request(this.url + '?_method=showSelectProcuct&_session=no','GameID=' + enc(GameID)+ '\r\nServerName=' + enc(ServerName)+ '\r\nGameTypeName=' + enc(GameTypeName)+ '\r\nCurrencySign=' + enc(CurrencySign)+ '\r\nQty=' + enc(Qty),callback, context);}, LoadServerList:function(callback,context){return new ajax_request(this.url + '?_method=LoadServerList&_session=no','',callback, context);}, LoadAmount:function(callback,context){return new ajax_request(this.url + '?_method=LoadAmount&_session=no','',callback, context);}, UpateAcount:function(myUserID,E_Mail,FirstName,Tel,callback,context){return new ajax_request(this.url + '?_method=UpateAcount&_session=no','myUserID=' + enc(myUserID)+ '\r\nE_Mail=' + enc(E_Mail)+ '\r\nFirstName=' + enc(FirstName)+ '\r\nTel=' + enc(Tel),callback, context);}, UpatePassWord:function(myUserID,OldPwd,NewPwd,ConfirmPwd,callback,context){return new ajax_request(this.url + '?_method=UpatePassWord&_session=no','myUserID=' + enc(myUserID)+ '\r\nOldPwd=' + enc(OldPwd)+ '\r\nNewPwd=' + enc(NewPwd)+ '\r\nConfirmPwd=' + enc(ConfirmPwd),callback, context);}, UpdateAddress:function(UserID,Address,City,Province,ZipCode,Country,callback,context){return new ajax_request(this.url + '?_method=UpdateAddress&_session=no','UserID=' + enc(UserID)+ '\r\nAddress=' + enc(Address)+ '\r\nCity=' + enc(City)+ '\r\nProvince=' + enc(Province)+ '\r\nZipCode=' + enc(ZipCode)+ '\r\nCountry=' + enc(Country),callback, context);}, MyOrderSel:function(flag,myUserID,callback,context){return new ajax_request(this.url + '?_method=MyOrderSel&_session=no','flag=' + enc(flag)+ '\r\nmyUserID=' + enc(myUserID),callback, context);}, TempOrderAdd:function(UserID,Ipstr,ServerID,ProductName,Price,Amount,PayType,WebName,callback,context){return new ajax_request(this.url + '?_method=TempOrderAdd&_session=no','UserID=' + enc(UserID)+ '\r\nIpstr=' + enc(Ipstr)+ '\r\nServerID=' + enc(ServerID)+ '\r\nProductName=' + enc(ProductName)+ '\r\nPrice=' + enc(Price)+ '\r\nAmount=' + enc(Amount)+ '\r\nPayType=' + enc(PayType)+ '\r\nWebName=' + enc(WebName),callback, context);}, CheckCouponCode:function(CouponCode,callback,context){return new ajax_request(this.url + '?_method=CheckCouponCode&_session=no','CouponCode=' + enc(CouponCode),callback, context);}, CouponPrice:function(CouponCode,Price,callback,context){return new ajax_request(this.url + '?_method=CouponPrice&_session=no','CouponCode=' + enc(CouponCode)+ '\r\nPrice=' + enc(Price),callback, context);}, url:'/ajax/AjaxMethod,App_Code.ashx' } function HtmlControl(id) { var ele = null; if(typeof(id) == 'object') ele = id; else ele = document.getElementById(id); if(ele == null) return null; var _o = ele.cloneNode(true); var _op = document.createElement('SPAN'); _op.appendChild(_o); this._source = _op.innerHTML; } HtmlControl.prototype.toString = function(){ return this._source; } function HtmlControlUpdate(func, parentId) { var f,i,ff,fa=''; var ele = document.getElementById(parentId); if(ele == null) return; var args = []; for(i=0; i 2) for(i=2; i9999||year<1970||month<1||month>12||day<0||day>31||hours<0||hours>23||minutes<0||minutes>59||seconds<0||seconds>59)throw("ArgumentException");this.Year = year;this.Month = month;this.Day = day;this.Hours = hours;this.Minutes = minutes;this.Seconds = seconds;} DateTime.prototype.toString = function(){return digi(this.Year,4) + digi(this.Month,2) + digi(this.Day,2) + digi(this.Hours,2) + digi(this.Minutes,2) + digi(this.Seconds,2);} function AjaxImage(url){var img=new Image();img.src=url;return img;} function TimeSpan(){this.Days=0;this.Hours=0;this.Minutes=0;this.Seconds=0;this.Milliseconds=0;} TimeSpan.prototype.toString = function(){return this.Days+'.'+this.Hours+':'+this.Minutes+':'+this.Seconds+'.'+this.Milliseconds;}