// cached javascript var AjaxMethod = { IsExistEmail:function(Email,callback,context){return new ajax_request(this.url + '?_method=IsExistEmail&_session=no','Email=' + enc(Email),callback, context);}, CheckPassword:function(Email,Password,callback,context){return new ajax_request(this.url + '?_method=CheckPassword&_session=no','Email=' + enc(Email)+ '\r\nPassword=' + enc(Password),callback, context);}, ProductList:function(ServerID,CurrencyMark,callback,context){return new ajax_request(this.url + '?_method=ProductList&_session=no','ServerID=' + enc(ServerID)+ '\r\nCurrencyMark=' + enc(CurrencyMark),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);}, 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,CurrencyMark,callback,context){return new ajax_request(this.url + '?_method=GetPrice&_session=no','ServerId=' + enc(ServerId)+ '\r\nNum=' + enc(Num)+ '\r\nCurrencyMark=' + enc(CurrencyMark),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);}, returnCouponTips:function(CouponCode,Price,Amount,UserID,callback,context){return new ajax_request(this.url + '?_method=returnCouponTips&_session=no','CouponCode=' + enc(CouponCode)+ '\r\nPrice=' + enc(Price)+ '\r\nAmount=' + enc(Amount)+ '\r\nUserID=' + enc(UserID),callback, context);}, SelectedProduct:function(GameId,ServerId,CurrencySign,Qty,callback,context){return new ajax_request(this.url + '?_method=SelectedProduct&_session=no','GameId=' + enc(GameId)+ '\r\nServerId=' + enc(ServerId)+ '\r\nCurrencySign=' + enc(CurrencySign)+ '\r\nQty=' + enc(Qty),callback, context);}, LowerProcucts:function(GameId,ServerId,CurrencySign,Qty,callback,context){return new ajax_request(this.url + '?_method=LowerProcucts&_session=no','GameId=' + enc(GameId)+ '\r\nServerId=' + enc(ServerId)+ '\r\nCurrencySign=' + enc(CurrencySign)+ '\r\nQty=' + enc(Qty),callback, context);}, MoreProcucts:function(GameId,ServerId,CurrencySign,Qty,callback,context){return new ajax_request(this.url + '?_method=MoreProcucts&_session=no','GameId=' + enc(GameId)+ '\r\nServerId=' + enc(ServerId)+ '\r\nCurrencySign=' + enc(CurrencySign)+ '\r\nQty=' + enc(Qty),callback, context);}, AddFavor:function(HostIp,WebLanguage,callback,context){return new ajax_request(this.url + '?_method=AddFavor&_session=no','HostIp=' + enc(HostIp)+ '\r\nWebLanguage=' + enc(WebLanguage),callback, context);}, CurrencyExchange:function(OldCurrencyName,NewCurrencyName,callback,context){return new ajax_request(this.url + '?_method=CurrencyExchange&_session=no','OldCurrencyName=' + enc(OldCurrencyName)+ '\r\nNewCurrencyName=' + enc(NewCurrencyName),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);}