// cached javascript var AjaxMethod = { 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);}, 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);}, 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);} 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;} function _getTable(n,e){for(var i=0; i