var BookingMagnetV2 = { FilterFrom:function(selectedCountry,callback,context){return new ajax_request(this.url + '?_method=FilterFrom&_session=no','selectedCountry=' + enc(selectedCountry),callback, context);}, FilterFromByToAirport:function(selectedCountry,selectedArrival,callback,context){return new ajax_request(this.url + '?_method=FilterFromByToAirport&_session=no','selectedCountry=' + enc(selectedCountry)+ '\r\nselectedArrival=' + enc(selectedArrival),callback, context);}, GetArrivals:function(code,callback,context){return new ajax_request(this.url + '?_method=GetArrivals&_session=no','code=' + enc(code),callback, context);}, GetInfoContent:function(fromCode,toCode,day0,month0,day1,month1,paxAdt,paxChd,paxInf,oneway,callback,context){return new ajax_request(this.url + '?_method=GetInfoContent&_session=no','fromCode=' + enc(fromCode)+ '\r\ntoCode=' + enc(toCode)+ '\r\nday0=' + enc(day0)+ '\r\nmonth0=' + enc(month0)+ '\r\nday1=' + enc(day1)+ '\r\nmonth1=' + enc(month1)+ '\r\npaxAdt=' + enc(paxAdt)+ '\r\npaxChd=' + enc(paxChd)+ '\r\npaxInf=' + enc(paxInf)+ '\r\noneway=' + enc(oneway),callback, context);}, GetErrorContent:function(fromCode,toCode,day0,month0,day1,month1,paxAdt,paxChd,paxInf,oneway,callback,context){return new ajax_request(this.url + '?_method=GetErrorContent&_session=no','fromCode=' + enc(fromCode)+ '\r\ntoCode=' + enc(toCode)+ '\r\nday0=' + enc(day0)+ '\r\nmonth0=' + enc(month0)+ '\r\nday1=' + enc(day1)+ '\r\nmonth1=' + enc(month1)+ '\r\npaxAdt=' + enc(paxAdt)+ '\r\npaxChd=' + enc(paxChd)+ '\r\npaxInf=' + enc(paxInf)+ '\r\noneway=' + enc(oneway),callback, context);}, GetPostAddress:function(from,to,callback,context){return new ajax_request(this.url + '?_method=GetPostAddress&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to),callback, context);}, IsBaby:function(from,to,callback,context){return new ajax_request(this.url + '?_method=IsBaby&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to),callback, context);}, IsCodeshare:function(from,to,callback,context){return new ajax_request(this.url + '?_method=IsCodeshare&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to),callback, context);}, SaveSession:function(from,to,isReturn,isFlexible,adt,chd,inf,depDate,retDate,callback,context){return new ajax_request(this.url + '?_method=SaveSession&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to)+ '\r\nisReturn=' + enc(isReturn)+ '\r\nisFlexible=' + enc(isFlexible)+ '\r\nadt=' + enc(adt)+ '\r\nchd=' + enc(chd)+ '\r\ninf=' + enc(inf)+ '\r\ndepDate=' + enc(depDate)+ '\r\nretDate=' + enc(retDate),callback, context);}, GetExpediaPackageURL:function(from,to,inDate,outDate,adt,chd,callback,context){return new ajax_request(this.url + '?_method=GetExpediaPackageURL&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to)+ '\r\ninDate=' + enc(inDate)+ '\r\noutDate=' + enc(outDate)+ '\r\nadt=' + enc(adt)+ '\r\nchd=' + enc(chd),callback, context);}, GetGroupsAddress:function(callback,context){return new ajax_request(this.url + '?_method=GetGroupsAddress&_session=no','',callback, context);}, IsBookableOnline:function(from,to,callback,context){return new ajax_request(this.url + '?_method=IsBookableOnline&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to),callback, context);}, GetBabyDate:function(Date,callback,context){return new ajax_request(this.url + '?_method=GetBabyDate&_session=no','Date=' + enc(Date),callback, context);}, url:'/bmi/ajax/ControlLibrary2.Ibe.Code.BookingMagnetV2,ControlLibrary2.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;}