// cached javascript var AjaxMethods = { updateGender:function(Gender,callback,context){return new ajax_request(this.url + '?_method=updateGender&_session=r','Gender=' + enc(Gender),callback, context);}, CloseMessage:function(MsgID,callback,context){return new ajax_request(this.url + '?_method=CloseMessage&_session=r','MsgID=' + enc(MsgID),callback, context);}, updateLogInName:function(LogInName,callback,context){return new ajax_request(this.url + '?_method=updateLogInName&_session=r','LogInName=' + enc(LogInName),callback, context);}, CreateBasketID:function(callback,context){return new ajax_request(this.url + '?_method=CreateBasketID&_session=no','',callback, context);}, AddToBasket:function(MovieID,BasketID,callback,context){return new ajax_request(this.url + '?_method=AddToBasket&_session=no','MovieID=' + enc(MovieID)+ '\r\nBasketID=' + enc(BasketID),callback, context);}, RemoveFromBasket:function(MovieID,BasketID,callback,context){return new ajax_request(this.url + '?_method=RemoveFromBasket&_session=no','MovieID=' + enc(MovieID)+ '\r\nBasketID=' + enc(BasketID),callback, context);}, updateDOB:function(dob,callback,context){return new ajax_request(this.url + '?_method=updateDOB&_session=r','dob=' + enc(dob),callback, context);}, updateEmail:function(Email,callback,context){return new ajax_request(this.url + '?_method=updateEmail&_session=r','Email=' + enc(Email),callback, context);}, updatePass:function(Password,callback,context){return new ajax_request(this.url + '?_method=updatePass&_session=r','Password=' + enc(Password),callback, context);}, updateName:function(FirstName,LastName,callback,context){return new ajax_request(this.url + '?_method=updateName&_session=r','FirstName=' + enc(FirstName)+ '\r\nLastName=' + enc(LastName),callback, context);}, updateNickName:function(NickName,callback,context){return new ajax_request(this.url + '?_method=updateNickName&_session=r','NickName=' + enc(NickName),callback, context);}, RateMovie:function(MovieID,NewRating,callback,context){return new ajax_request(this.url + '?_method=RateMovie&_session=r','MovieID=' + enc(MovieID)+ '\r\nNewRating=' + enc(NewRating),callback, context);}, VoteReview:function(ReviewID,ssID,Vote,callback,context){return new ajax_request(this.url + '?_method=VoteReview&_session=no','ReviewID=' + enc(ReviewID)+ '\r\nssID=' + enc(ssID)+ '\r\nVote=' + enc(Vote),callback, context);}, ShowTotoDesc:function(MovieID,callback,context){return new ajax_request(this.url + '?_method=ShowTotoDesc&_session=no','MovieID=' + enc(MovieID),callback, context);}, getHelpDiv:function(groupID,callback,context){return new ajax_request(this.url + '?_method=getHelpDiv&_session=no','groupID=' + enc(groupID),callback, context);}, AddDVD:function(MovieID,Style,LinkID,callback,context){return new ajax_request(this.url + '?_method=AddDVD&_session=r','MovieID=' + enc(MovieID)+ '\r\nStyle=' + enc(Style)+ '\r\nLinkID=' + enc(LinkID),callback, context);}, GetRelated:function(MovieID,callback,context){return new ajax_request(this.url + '?_method=GetRelated&_session=r','MovieID=' + enc(MovieID),callback, context);}, GetMiniQ:function(Action,callback,context){return new ajax_request(this.url + '?_method=GetMiniQ&_session=r','Action=' + enc(Action),callback, context);}, UpdateMiniQ:function(s,callback,context){return new ajax_request(this.url + '?_method=UpdateMiniQ&_session=r','s=' + enc(s),callback, context);}, GetHelpTopic:function(TopicID,callback,context){return new ajax_request(this.url + '?_method=GetHelpTopic&_session=no','TopicID=' + enc(TopicID),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);}, GetRatingImg:function(callback,context){return new ajax_request(this.url + '?_method=GetRatingImg&_session=r','',callback, context);}, ShareTrailer:function(MovieID,EmailFrom,EmailTo,Comment,strSubject,callback,context){return new ajax_request(this.url + '?_method=ShareTrailer&_session=no','MovieID=' + enc(MovieID)+ '\r\nEmailFrom=' + enc(EmailFrom)+ '\r\nEmailTo=' + enc(EmailTo)+ '\r\nComment=' + enc(Comment)+ '\r\nstrSubject=' + enc(strSubject),callback, context);}, url:'/ajax/CPMain.AjaxMethods,CPMain.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 AjaxImage(url){var img=new Image();img.src=url;return img;} 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;}