var AjaxService = { MaintainAreaDictionary:function(callback,context){return new ajax_request(this.url + '?_method=MaintainAreaDictionary&_session=no','',callback, context);}, GetChildAreaByParentAreaIDList4Ds:function(iCurrentAreaID,callback,context){return new ajax_request(this.url + '?_method=GetChildAreaByParentAreaIDList4Ds&_session=no','iCurrentAreaID=' + enc(iCurrentAreaID),callback, context);}, GetAjaxDialogGUI:function(iTemplateType,callback,context){return new ajax_request(this.url + '?_method=GetAjaxDialogGUI&_session=no','iTemplateType=' + enc(iTemplateType),callback, context);}, GetCommentGoodsAjaxDialogGUI:function(iGoodsID,callback,context){return new ajax_request(this.url + '?_method=GetCommentGoodsAjaxDialogGUI&_session=no','iGoodsID=' + enc(iGoodsID),callback, context);}, GetCollectedGoodsAjaxDialogGUI:function(iGoodsID,callback,context){return new ajax_request(this.url + '?_method=GetCollectedGoodsAjaxDialogGUI&_session=no','iGoodsID=' + enc(iGoodsID),callback, context);}, DoCollectedGoodsProcess:function(iGoodsID,sTags,callback,context){return new ajax_request(this.url + '?_method=DoCollectedGoodsProcess&_session=no','iGoodsID=' + enc(iGoodsID)+ '\r\nsTags=' + enc(sTags),callback, context);}, DoPutGoodsToBasket:function(iGoodsID,iGoodsPhotoCategoryID,sSpecification,callback,context){return new ajax_request(this.url + '?_method=DoPutGoodsToBasket&_session=no','iGoodsID=' + enc(iGoodsID)+ '\r\niGoodsPhotoCategoryID=' + enc(iGoodsPhotoCategoryID)+ '\r\nsSpecification=' + enc(sSpecification),callback, context);}, CheckMemberUserNameIsExist:function(sUserName,callback,context){return new ajax_request(this.url + '?_method=CheckMemberUserNameIsExist&_session=no','sUserName=' + enc(sUserName),callback, context);}, CheckMemberEmailIsExist:function(sEmail,callback,context){return new ajax_request(this.url + '?_method=CheckMemberEmailIsExist&_session=no','sEmail=' + enc(sEmail),callback, context);}, DoDeleteBasketLineItemProcess:function(iBasketLineItemID,callback,context){return new ajax_request(this.url + '?_method=DoDeleteBasketLineItemProcess&_session=no','iBasketLineItemID=' + enc(iBasketLineItemID),callback, context);}, DoUpdateBasketLineItemQuantityProcess:function(iBasketLineItemID,iQuantity,callback,context){return new ajax_request(this.url + '?_method=DoUpdateBasketLineItemQuantityProcess&_session=no','iBasketLineItemID=' + enc(iBasketLineItemID)+ '\r\niQuantity=' + enc(iQuantity),callback, context);}, FrontListGoodsCommentByPageAble:function(iCurrentMemberID,iGoodsID,iPageSize,iPageIndex,bDoCount,callback,context){return new ajax_request(this.url + '?_method=FrontListGoodsCommentByPageAble&_session=no','iCurrentMemberID=' + enc(iCurrentMemberID)+ '\r\niGoodsID=' + enc(iGoodsID)+ '\r\niPageSize=' + enc(iPageSize)+ '\r\niPageIndex=' + enc(iPageIndex)+ '\r\nbDoCount=' + enc(bDoCount),callback, context);}, DoCommentGoodsProcess:function(iGoodsID,sCommentContent,callback,context){return new ajax_request(this.url + '?_method=DoCommentGoodsProcess&_session=no','iGoodsID=' + enc(iGoodsID)+ '\r\nsCommentContent=' + enc(sCommentContent),callback, context);}, GetClickLogPageAble:function(iGoodsID,iPageSize,iPageIndex,bDoCount,callback,context){return new ajax_request(this.url + '?_method=GetClickLogPageAble&_session=no','iGoodsID=' + enc(iGoodsID)+ '\r\niPageSize=' + enc(iPageSize)+ '\r\niPageIndex=' + enc(iPageIndex)+ '\r\nbDoCount=' + enc(bDoCount),callback, context);}, GetGoodsPhotoByGoodsPhotoCategoryID:function(iGoodsPhotoCategoryID,callback,context){return new ajax_request(this.url + '?_method=GetGoodsPhotoByGoodsPhotoCategoryID&_session=no','iGoodsPhotoCategoryID=' + enc(iGoodsPhotoCategoryID),callback, context);}, DoDeleteExchangeBasketLineItemProcess:function(iBasketLineItemID,callback,context){return new ajax_request(this.url + '?_method=DoDeleteExchangeBasketLineItemProcess&_session=no','iBasketLineItemID=' + enc(iBasketLineItemID),callback, context);}, DoUpdateExchangeBasketLineItemQuantityProcess:function(iBasketLineItemID,iQuantity,callback,context){return new ajax_request(this.url + '?_method=DoUpdateExchangeBasketLineItemQuantityProcess&_session=no','iBasketLineItemID=' + enc(iBasketLineItemID)+ '\r\niQuantity=' + enc(iQuantity),callback, context);}, GetGoodsComment:function(iGoodsID,iPageSize,iPageIndex,bDoCount,callback,context){return new ajax_request(this.url + '?_method=GetGoodsComment&_session=no','iGoodsID=' + enc(iGoodsID)+ '\r\niPageSize=' + enc(iPageSize)+ '\r\niPageIndex=' + enc(iPageIndex)+ '\r\nbDoCount=' + enc(bDoCount),callback, context);}, GetSendGoodsFeeInSpecificRegionByRegionIndex:function(sRegionIndex,callback,context){return new ajax_request(this.url + '?_method=GetSendGoodsFeeInSpecificRegionByRegionIndex&_session=no','sRegionIndex=' + enc(sRegionIndex),callback, context);}, DoBsTrackMemberCommentProcess:function(iCommentType,sCommentContent,iGoodsID,iOrderID,callback,context){return new ajax_request(this.url + '?_method=DoBsTrackMemberCommentProcess&_session=no','iCommentType=' + enc(iCommentType)+ '\r\nsCommentContent=' + enc(sCommentContent)+ '\r\niGoodsID=' + enc(iGoodsID)+ '\r\niOrderID=' + enc(iOrderID),callback, context);}, url:'/ajax/Mall.Service.AjaxService,Mall.Service.ashx' } function digi(v, c){v = v + "";var n = "0000";if(v.length < c) return n.substr(0, c-v.length) + v;return v;} function DateTime(year,month,day,hours,minutes,seconds){if(year>9999||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 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; i