var AjaxService = { GetLocationByCityCode:function(cityCode,callback,context){return new ajax_request(this.url + '?_method=GetLocationByCityCode&_session=r','cityCode=' + enc(cityCode),callback, context);}, GetLocationByAreaCode:function(areaCode,callback,context){return new ajax_request(this.url + '?_method=GetLocationByAreaCode&_session=r','areaCode=' + enc(areaCode),callback, context);}, LoadRoomStatusLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadRoomStatusLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadStarRatingLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadStarRatingLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadFixLocationLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadFixLocationLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadRoomFacilityLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadRoomFacilityLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadHotelFacilityLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadHotelFacilityLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadNearCityCenterLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadNearCityCenterLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadNearMetroLowestPrice:function(skey,callback,context){return new ajax_request(this.url + '?_method=LoadNearMetroLowestPrice&_session=r','skey=' + enc(skey),callback, context);}, LoadApartmentCity:function(countryCode,callback,context){return new ajax_request(this.url + '?_method=LoadApartmentCity&_session=r','countryCode=' + enc(countryCode),callback, context);}, LoadSightseeingCity:function(countryCode,callback,context){return new ajax_request(this.url + '?_method=LoadSightseeingCity&_session=r','countryCode=' + enc(countryCode),callback, context);}, LoadSharedTransferCity:function(countryCode,callback,context){return new ajax_request(this.url + '?_method=LoadSharedTransferCity&_session=r','countryCode=' + enc(countryCode),callback, context);}, getFairCityList:function(cntyName,callback,context){return new ajax_request(this.url + '?_method=getFairCityList&_session=r','cntyName=' + enc(cntyName),callback, context);}, loadFairList:function(cntyName,cityName,openDate,closeDate,callback,context){return new ajax_request(this.url + '?_method=loadFairList&_session=r','cntyName=' + enc(cntyName)+ '\r\ncityName=' + enc(cityName)+ '\r\nopenDate=' + enc(openDate)+ '\r\ncloseDate=' + enc(closeDate),callback, context);}, LoadGroupCountryList:function(callback,context){return new ajax_request(this.url + '?_method=LoadGroupCountryList&_session=r','',callback, context);}, LoadGroupCityList:function(cntyCode,callback,context){return new ajax_request(this.url + '?_method=LoadGroupCityList&_session=r','cntyCode=' + enc(cntyCode),callback, context);}, GetHotelAvailability:function(cityCode,checkInDate,checkOtDate,callback,context){return new ajax_request(this.url + '?_method=GetHotelAvailability&_session=r','cityCode=' + enc(cityCode)+ '\r\ncheckInDate=' + enc(checkInDate)+ '\r\ncheckOtDate=' + enc(checkOtDate),callback, context);}, GetGroupAgentLogonDetail:function(licenseNo,callback,context){return new ajax_request(this.url + '?_method=GetGroupAgentLogonDetail&_session=r','licenseNo=' + enc(licenseNo),callback, context);}, ValidateAgentSearchCondition:function(licenseNo,callback,context){return new ajax_request(this.url + '?_method=ValidateAgentSearchCondition&_session=r','licenseNo=' + enc(licenseNo),callback, context);}, LoadPrimeCountryList:function(area,callback,context){return new ajax_request(this.url + '?_method=LoadPrimeCountryList&_session=r','area=' + enc(area),callback, context);}, LoadPrimeCityList:function(cntyCode,callback,context){return new ajax_request(this.url + '?_method=LoadPrimeCityList&_session=r','cntyCode=' + enc(cntyCode),callback, context);}, SaveWebQuestionnaire:function(companyName,clientId,writePerson,tel,contentString,callback,context){return new ajax_request(this.url + '?_method=SaveWebQuestionnaire&_session=r','companyName=' + enc(companyName)+ '\r\nclientId=' + enc(clientId)+ '\r\nwritePerson=' + enc(writePerson)+ '\r\ntel=' + enc(tel)+ '\r\ncontentString=' + enc(contentString),callback, context);}, SaveDiscountApplication:function(city,applicant,agentNo,tel,fax,bookingNo,mail,memo,callback,context){return new ajax_request(this.url + '?_method=SaveDiscountApplication&_session=r','city=' + enc(city)+ '\r\napplicant=' + enc(applicant)+ '\r\nagentNo=' + enc(agentNo)+ '\r\ntel=' + enc(tel)+ '\r\nfax=' + enc(fax)+ '\r\nbookingNo=' + enc(bookingNo)+ '\r\nmail=' + enc(mail)+ '\r\nmemo=' + enc(memo),callback, context);}, SaveBookingApplication:function(g_office,g_cityName,g_hotelName,g_chkIn,g_chkOt,g_currency,g_roomType,g_roomCount,g_babyCot,g_paxName,g_childAge,g_memo,g_agentNo,g_licNo,g_telNo,g_email,g_payWay,callback,context){return new ajax_request(this.url + '?_method=SaveBookingApplication&_session=r','g_office=' + enc(g_office)+ '\r\ng_cityName=' + enc(g_cityName)+ '\r\ng_hotelName=' + enc(g_hotelName)+ '\r\ng_chkIn=' + enc(g_chkIn)+ '\r\ng_chkOt=' + enc(g_chkOt)+ '\r\ng_currency=' + enc(g_currency)+ '\r\ng_roomType=' + enc(g_roomType)+ '\r\ng_roomCount=' + enc(g_roomCount)+ '\r\ng_babyCot=' + enc(g_babyCot)+ '\r\ng_paxName=' + enc(g_paxName)+ '\r\ng_childAge=' + enc(g_childAge)+ '\r\ng_memo=' + enc(g_memo)+ '\r\ng_agentNo=' + enc(g_agentNo)+ '\r\ng_licNo=' + enc(g_licNo)+ '\r\ng_telNo=' + enc(g_telNo)+ '\r\ng_email=' + enc(g_email)+ '\r\ng_payWay=' + enc(g_payWay),callback, context);}, RequestGroupHotel:function(cntyCode,cityCode,chkIn,chkOut,roomType,roomCount,srKey,callback,context){return new ajax_request(this.url + '?_method=RequestGroupHotel&_session=r','cntyCode=' + enc(cntyCode)+ '\r\ncityCode=' + enc(cityCode)+ '\r\nchkIn=' + enc(chkIn)+ '\r\nchkOut=' + enc(chkOut)+ '\r\nroomType=' + enc(roomType)+ '\r\nroomCount=' + enc(roomCount)+ '\r\nsrKey=' + enc(srKey),callback, context);}, url:'/ajax/GtaChina.Logic.AjaxService,GtaChina.Logic.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