// cached javascript var FilmAjax = { GetSubCategory:function(NodeID,ParentID,Inc,callback,context){return new ajax_request(this.url + '?_method=GetSubCategory&_session=r','NodeID=' + enc(NodeID)+ '\r\nParentID=' + enc(ParentID)+ '\r\nInc=' + enc(Inc),callback, context);}, sendVIPPass:function(from,email,callback,context){return new ajax_request(this.url + '?_method=sendVIPPass&_session=r','from=' + enc(from)+ '\r\nemail=' + enc(email),callback, context);}, CloseMessage:function(MsgID,callback,context){return new ajax_request(this.url + '?_method=CloseMessage&_session=r','MsgID=' + enc(MsgID),callback, context);}, TrackSearch:function(TrackID,callback,context){return new ajax_request(this.url + '?_method=TrackSearch&_session=r','TrackID=' + enc(TrackID),callback, context);}, RateFilmGetRented:function(lnk,callback,context){return new ajax_request(this.url + '?_method=RateFilmGetRented&_session=r','lnk=' + enc(lnk),callback, context);}, RateFilm:function(lnk,callback,context){return new ajax_request(this.url + '?_method=RateFilm&_session=r','lnk=' + enc(lnk),callback, context);}, ReviewVote:function(ReviewID,Vote,callback,context){return new ajax_request(this.url + '?_method=ReviewVote&_session=r','ReviewID=' + enc(ReviewID)+ '\r\nVote=' + enc(Vote),callback, context);}, GetHelpPop:function(GroupID,callback,context){return new ajax_request(this.url + '?_method=GetHelpPop&_session=no','GroupID=' + enc(GroupID),callback, context);}, GetToTo:function(MediaID,WithPic,callback,context){return new ajax_request(this.url + '?_method=GetToTo&_session=no','MediaID=' + enc(MediaID)+ '\r\nWithPic=' + enc(WithPic),callback, context);}, removeDVDFromList:function(DVDID,callback,context){return new ajax_request(this.url + '?_method=removeDVDFromList&_session=r','DVDID=' + enc(DVDID),callback, context);}, AddToList:function(Value,callback,context){return new ajax_request(this.url + '?_method=AddToList&_session=r','Value=' + enc(Value),callback, context);}, GetMiniNoTitles:function(NoInList,callback,context){return new ajax_request(this.url + '?_method=GetMiniNoTitles&_session=r','NoInList=' + enc(NoInList),callback, context);}, GetMiniQ:function(Action,callback,context){return new ajax_request(this.url + '?_method=GetMiniQ&_session=r','Action=' + enc(Action),callback, context);}, UpdateMiniQ:function(order,callback,context){return new ajax_request(this.url + '?_method=UpdateMiniQ&_session=r','order=' + enc(order),callback, context);}, GetShareForm:function(MovieID,callback,context){return new ajax_request(this.url + '?_method=GetShareForm&_session=r','MovieID=' + enc(MovieID),callback, context);}, ShareTrailer:function(MovieID,EmailFrom,EmailTo,Comment,strSubject,callback,context){return new ajax_request(this.url + '?_method=ShareTrailer&_session=r','MovieID=' + enc(MovieID)+ '\r\nEmailFrom=' + enc(EmailFrom)+ '\r\nEmailTo=' + enc(EmailTo)+ '\r\nComment=' + enc(Comment)+ '\r\nstrSubject=' + enc(strSubject),callback, context);}, GetNoDVDsInList:function(callback,context){return new ajax_request(this.url + '?_method=GetNoDVDsInList&_session=r','',callback, context);}, GetRelated:function(MediaID,RecordsPerPage,callback,context){return new ajax_request(this.url + '?_method=GetRelated&_session=r','MediaID=' + enc(MediaID)+ '\r\nRecordsPerPage=' + enc(RecordsPerPage),callback, context);}, GetCollection:function(ColID,ParentID,ExclRented,pageNo,callback,context){return new ajax_request(this.url + '?_method=GetCollection&_session=r','ColID=' + enc(ColID)+ '\r\nParentID=' + enc(ParentID)+ '\r\nExclRented=' + enc(ExclRented)+ '\r\npageNo=' + enc(pageNo),callback, context);}, GetCollectionHome:function(ColID,ParentID,ExclRented,pageNo,callback,context){return new ajax_request(this.url + '?_method=GetCollectionHome&_session=r','ColID=' + enc(ColID)+ '\r\nParentID=' + enc(ParentID)+ '\r\nExclRented=' + enc(ExclRented)+ '\r\npageNo=' + enc(pageNo),callback, context);}, url:'/ajax/CPMain.FilmAjax,CPMain.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 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);}