// cached javascript var AjaxFunctions = { InsertItemToBasket:function(strProductId,strNumberOfItems,strDealer,callback,context){return new ajax_request(this.url + '?_method=InsertItemToBasket&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrNumberOfItems=' + enc(strNumberOfItems)+ '\r\nstrDealer=' + enc(strDealer),callback, context);}, RemoveItemOptions:function(strProductId,strKey,callback,context){return new ajax_request(this.url + '?_method=RemoveItemOptions&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrKey=' + enc(strKey),callback, context);}, IncreaseItemOptions:function(strProductId,strKey,callback,context){return new ajax_request(this.url + '?_method=IncreaseItemOptions&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrKey=' + enc(strKey),callback, context);}, DecreaseItemOptions:function(strProductId,strKey,callback,context){return new ajax_request(this.url + '?_method=DecreaseItemOptions&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrKey=' + enc(strKey),callback, context);}, RemoveItemFromBasket:function(strProductId,callback,context){return new ajax_request(this.url + '?_method=RemoveItemFromBasket&_session=rw','strProductId=' + enc(strProductId),callback, context);}, RemoveItemFromBasketOptions:function(strProductId,strKey,callback,context){return new ajax_request(this.url + '?_method=RemoveItemFromBasketOptions&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrKey=' + enc(strKey),callback, context);}, IncreaseItemInBasket:function(strProductId,callback,context){return new ajax_request(this.url + '?_method=IncreaseItemInBasket&_session=rw','strProductId=' + enc(strProductId),callback, context);}, DecreaseItemInBasket:function(strProductId,callback,context){return new ajax_request(this.url + '?_method=DecreaseItemInBasket&_session=rw','strProductId=' + enc(strProductId),callback, context);}, RefreshBasketOptions:function(callback,context){return new ajax_request(this.url + '?_method=RefreshBasketOptions&_session=rw','',callback, context);}, AddItemsOptionsToBasket:function(strProductId,strItemOptionId,strNumberOfItems,strDealer,strKey,callback,context){return new ajax_request(this.url + '?_method=AddItemsOptionsToBasket&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrItemOptionId=' + enc(strItemOptionId)+ '\r\nstrNumberOfItems=' + enc(strNumberOfItems)+ '\r\nstrDealer=' + enc(strDealer)+ '\r\nstrKey=' + enc(strKey),callback, context);}, GetRestaurant:function(callback,context){return new ajax_request(this.url + '?_method=GetRestaurant&_session=rw','',callback, context);}, SendBrochureInfo:function(strTitle,strForname,strLastname,strCompany,strPostcode,strAddress,strPhone,strMobile,strEmail,callback,context){return new ajax_request(this.url + '?_method=SendBrochureInfo&_session=rw','strTitle=' + enc(strTitle)+ '\r\nstrForname=' + enc(strForname)+ '\r\nstrLastname=' + enc(strLastname)+ '\r\nstrCompany=' + enc(strCompany)+ '\r\nstrPostcode=' + enc(strPostcode)+ '\r\nstrAddress=' + enc(strAddress)+ '\r\nstrPhone=' + enc(strPhone)+ '\r\nstrMobile=' + enc(strMobile)+ '\r\nstrEmail=' + enc(strEmail),callback, context);}, ContactUsInfo:function(strName,strContactPhone,strContactEmail,strMessage,callback,context){return new ajax_request(this.url + '?_method=ContactUsInfo&_session=rw','strName=' + enc(strName)+ '\r\nstrContactPhone=' + enc(strContactPhone)+ '\r\nstrContactEmail=' + enc(strContactEmail)+ '\r\nstrMessage=' + enc(strMessage),callback, context);}, RemoveOptions:function(strProductId,strOptionsId,callback,context){return new ajax_request(this.url + '?_method=RemoveOptions&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrOptionsId=' + enc(strOptionsId),callback, context);}, AreaLightbox:function(strInput,callback,context){return new ajax_request(this.url + '?_method=AreaLightbox&_session=rw','strInput=' + enc(strInput),callback, context);}, CheckOrder:function(alcaholic,callback,context){return new ajax_request(this.url + '?_method=CheckOrder&_session=rw','alcaholic=' + enc(alcaholic),callback, context);}, CheckAlcaholicOrder:function(callback,context){return new ajax_request(this.url + '?_method=CheckAlcaholicOrder&_session=rw','',callback, context);}, CheckIfDealerIsOpen:function(strDealerid,callback,context){return new ajax_request(this.url + '?_method=CheckIfDealerIsOpen&_session=rw','strDealerid=' + enc(strDealerid),callback, context);}, GetAddressess:function(strPostcode,callback,context){return new ajax_request(this.url + '?_method=GetAddressess&_session=rw','strPostcode=' + enc(strPostcode),callback, context);}, CheckUserDetail:function(strEmail,callback,context){return new ajax_request(this.url + '?_method=CheckUserDetail&_session=rw','strEmail=' + enc(strEmail),callback, context);}, UserCheck:function(callback,context){return new ajax_request(this.url + '?_method=UserCheck&_session=rw','',callback, context);}, DuplicateOrder:function(strOrderId,strDeliveryAddressId,callback,context){return new ajax_request(this.url + '?_method=DuplicateOrder&_session=rw','strOrderId=' + enc(strOrderId)+ '\r\nstrDeliveryAddressId=' + enc(strDeliveryAddressId),callback, context);}, AddLabelToDish:function(strProductId,strKey,strLabel,callback,context){return new ajax_request(this.url + '?_method=AddLabelToDish&_session=rw','strProductId=' + enc(strProductId)+ '\r\nstrKey=' + enc(strKey)+ '\r\nstrLabel=' + enc(strLabel),callback, context);}, url:'/ajax/RS.Code.Common.AjaxFunctions,RS.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);}