// cached javascript var AjaxMethod = { CheckRegName:function(userName,callback,context){return new ajax_request(this.url + '?_method=CheckRegName&_session=no','userName=' + enc(userName),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);}, 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);}, LoadProductList:function(GameID,ServerId,CurrencySign,callback,context){return new ajax_request(this.url + '?_method=LoadProductList&_session=no','GameID=' + enc(GameID)+ '\r\nServerId=' + enc(ServerId)+ '\r\nCurrencySign=' + enc(CurrencySign),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);}, ReturnCouponTips:function(CouponCode,Price,Amount,callback,context){return new ajax_request(this.url + '?_method=ReturnCouponTips&_session=no','CouponCode=' + enc(CouponCode)+ '\r\nPrice=' + enc(Price)+ '\r\nAmount=' + enc(Amount),callback, context);}, CouponTips:function(CouponCode,Price,GameID,UserID,callback,context){return new ajax_request(this.url + '?_method=CouponTips&_session=no','CouponCode=' + enc(CouponCode)+ '\r\nPrice=' + enc(Price)+ '\r\nGameID=' + enc(GameID)+ '\r\nUserID=' + enc(UserID),callback, context);}, MyOrderSel:function(UserId,callback,context){return new ajax_request(this.url + '?_method=MyOrderSel&_session=no','UserId=' + enc(UserId),callback, context);}, GCOrderSel:function(UserId,callback,context){return new ajax_request(this.url + '?_method=GCOrderSel&_session=no','UserId=' + enc(UserId),callback, context);}, MyOrderStatus:function(userID,flag,callback,context){return new ajax_request(this.url + '?_method=MyOrderStatus&_session=no','userID=' + enc(userID)+ '\r\nflag=' + enc(flag),callback, context);}, InsertNum:function(ip,name,callback,context){return new ajax_request(this.url + '?_method=InsertNum&_session=no','ip=' + enc(ip)+ '\r\nname=' + enc(name),callback, context);}, InsetrCatacly:function(UserName,Posts,count,callback,context){return new ajax_request(this.url + '?_method=InsetrCatacly&_session=no','UserName=' + enc(UserName)+ '\r\nPosts=' + enc(Posts)+ '\r\ncount=' + enc(count),callback, context);}, HasVote:function(ip,callback,context){return new ajax_request(this.url + '?_method=HasVote&_session=no','ip=' + enc(ip),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 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;}