// cached javascript var LocalizationManager = { GetCountries:function(callback,context){return new ajax_request(this.url + '?_method=GetCountries&_session=no','',callback, context);}, GetLocalizationByCountry:function(countryId,callback,context){return new ajax_request(this.url + '?_method=GetLocalizationByCountry&_session=no','countryId=' + enc(countryId),callback, context);}, GetLocalizationDropDown:function(countryId,callback,context){return new ajax_request(this.url + '?_method=GetLocalizationDropDown&_session=no','countryId=' + enc(countryId),callback, context);}, url:'/ajax/Index.Community.TchatchePass.Web.AjaxLib.LocalizationManager,Index.Community.TchatchePass.Web.ashx' } 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 __getMsg(data) {return {Type:data[0],HasBeenRead:data[1],Text:data[2],Sender:data[3]};}function __getConv(data) {return {Id:data[0],Pseudo:data[1],Picto:data[2],IsAd:data[3]};}function __getCountry(data) {return {Id:data[0],Name:data[1],Iso3166_2:data[2],Iso3166_3:data[3],LowestCompleteLevel:data[4]};}function AjaxImage(url){var img=new Image();img.src=url;return img;} function __getHtmlSelect(data) {return {Value:data[0],Text:data[1]};}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 __getUser(data) {return {Id:data[0],Pseudo:data[1],Department:data[2],Picto:data[3],Type:data[4],Age:data[5],Sex:data[6]};}