var AjaxNewsHandle = { AdFocus:function(strWhere,callback,context){return new ajax_request(this.url + '?_method=AdFocus&_session=no','strWhere=' + enc(strWhere),callback, context);}, RegisterPhotoScript:function(regPage,strWhere,callback,context){return new ajax_request(this.url + '?_method=RegisterPhotoScript&_session=no','regPage=' + enc(regPage)+ '\r\nstrWhere=' + enc(strWhere),callback, context);}, ReturnHotPhoto:function(strWhere,callback,context){return new ajax_request(this.url + '?_method=ReturnHotPhoto&_session=no','strWhere=' + enc(strWhere),callback, context);}, ReturnMarqueePhotoNews:function(strWhere,iWidth,iHeight,callback,context){return new ajax_request(this.url + '?_method=ReturnMarqueePhotoNews&_session=no','strWhere=' + enc(strWhere)+ '\r\niWidth=' + enc(iWidth)+ '\r\niHeight=' + enc(iHeight),callback, context);}, ReturnExpiredVoteHTML:function(strCondition,callback,context){return new ajax_request(this.url + '?_method=ReturnExpiredVoteHTML&_session=no','strCondition=' + enc(strCondition),callback, context);}, ReturnVoteItemsList:function(votType,BallotID,callback,context){return new ajax_request(this.url + '?_method=ReturnVoteItemsList&_session=no','votType=' + enc(votType)+ '\r\nBallotID=' + enc(BallotID),callback, context);}, ReturnVoteList:function(votType,BallotID,callback,context){return new ajax_request(this.url + '?_method=ReturnVoteList&_session=no','votType=' + enc(votType)+ '\r\nBallotID=' + enc(BallotID),callback, context);}, ReturnSeeVoteItemsList:function(BallotID,callback,context){return new ajax_request(this.url + '?_method=ReturnSeeVoteItemsList&_session=no','BallotID=' + enc(BallotID),callback, context);}, ReturnSeeSpecial_VoteItemsList:function(BallotID,callback,context){return new ajax_request(this.url + '?_method=ReturnSeeSpecial_VoteItemsList&_session=no','BallotID=' + enc(BallotID),callback, context);}, ReturnOtherBallotList:function(PageIndex,strWhere,callback,context){return new ajax_request(this.url + '?_method=ReturnOtherBallotList&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nstrWhere=' + enc(strWhere),callback, context);}, ReturnDetailsNewsNavigation:function(categoryType,callback,context){return new ajax_request(this.url + '?_method=ReturnDetailsNewsNavigation&_session=no','categoryType=' + enc(categoryType),callback, context);}, ReturnPreviousNews:function(categoryType,strWhere,callback,context){return new ajax_request(this.url + '?_method=ReturnPreviousNews&_session=no','categoryType=' + enc(categoryType)+ '\r\nstrWhere=' + enc(strWhere),callback, context);}, ReturnNextNews:function(categoryType,strWhere,callback,context){return new ajax_request(this.url + '?_method=ReturnNextNews&_session=no','categoryType=' + enc(categoryType)+ '\r\nstrWhere=' + enc(strWhere),callback, context);}, ReturnNewsContent:function(newsFile,callback,context){return new ajax_request(this.url + '?_method=ReturnNewsContent&_session=no','newsFile=' + enc(newsFile),callback, context);}, UpdatePeruseRateOfNews:function(NewsFile,callback,context){return new ajax_request(this.url + '?_method=UpdatePeruseRateOfNews&_session=no','NewsFile=' + enc(NewsFile),callback, context);}, GetNewsCommentContent:function(PageRecordAmount,PageIndex,strWhere,callback,context){return new ajax_request(this.url + '?_method=GetNewsCommentContent&_session=no','PageRecordAmount=' + enc(PageRecordAmount)+ '\r\nPageIndex=' + enc(PageIndex)+ '\r\nstrWhere=' + enc(strWhere),callback, context);}, GetNewsRanks:function(callback,context){return new ajax_request(this.url + '?_method=GetNewsRanks&_session=no','',callback, context);}, ClientAddBallot_Record:function(Ballot_ID,SelItem_ID,whileTimes,callback,context){return new ajax_request(this.url + '?_method=ClientAddBallot_Record&_session=no','Ballot_ID=' + enc(Ballot_ID)+ '\r\nSelItem_ID=' + enc(SelItem_ID)+ '\r\nwhileTimes=' + enc(whileTimes),callback, context);}, ClientAddSpecial_Ballot_Record:function(Ballot_ID,SelItem_ID,callback,context){return new ajax_request(this.url + '?_method=ClientAddSpecial_Ballot_Record&_session=no','Ballot_ID=' + enc(Ballot_ID)+ '\r\nSelItem_ID=' + enc(SelItem_ID),callback, context);}, ConstructionTopCommentList:function(PageIndex,callback,context){return new ajax_request(this.url + '?_method=ConstructionTopCommentList&_session=no','PageIndex=' + enc(PageIndex),callback, context);}, ConstructioinBottomList:function(PageIndex,callback,context){return new ajax_request(this.url + '?_method=ConstructioinBottomList&_session=no','PageIndex=' + enc(PageIndex),callback, context);}, getRanksList:function(categoryName,timeType,callback,context){return new ajax_request(this.url + '?_method=getRanksList&_session=no','categoryName=' + enc(categoryName)+ '\r\ntimeType=' + enc(timeType),callback, context);}, getForesideList:function(PageIndex,resultType,CategoryType,callback,context){return new ajax_request(this.url + '?_method=getForesideList&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nresultType=' + enc(resultType)+ '\r\nCategoryType=' + enc(CategoryType),callback, context);}, getSecondHalfList:function(PageIndex,resultType,CategoryType,callback,context){return new ajax_request(this.url + '?_method=getSecondHalfList&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nresultType=' + enc(resultType)+ '\r\nCategoryType=' + enc(CategoryType),callback, context);}, getSearchForesideList:function(PageIndex,strKeyWord,callback,context){return new ajax_request(this.url + '?_method=getSearchForesideList&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nstrKeyWord=' + enc(strKeyWord),callback, context);}, getSearchSecondHalfList:function(PageIndex,strKeyWord,callback,context){return new ajax_request(this.url + '?_method=getSearchSecondHalfList&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nstrKeyWord=' + enc(strKeyWord),callback, context);}, BuildingPageHTML:function(PageIndex,resultType,strKeyWord,callback,context){return new ajax_request(this.url + '?_method=BuildingPageHTML&_session=no','PageIndex=' + enc(PageIndex)+ '\r\nresultType=' + enc(resultType)+ '\r\nstrKeyWord=' + enc(strKeyWord),callback, context);}, getCDBlogList:function(callback,context){return new ajax_request(this.url + '?_method=getCDBlogList&_session=no','',callback, context);}, getCDNewNewsList:function(callback,context){return new ajax_request(this.url + '?_method=getCDNewNewsList&_session=no','',callback, context);}, getCDTheNewNewsList:function(categoryType,callback,context){return new ajax_request(this.url + '?_method=getCDTheNewNewsList&_session=no','categoryType=' + enc(categoryType),callback, context);}, getCDTheRanksNewsList:function(categoryType,callback,context){return new ajax_request(this.url + '?_method=getCDTheRanksNewsList&_session=no','categoryType=' + enc(categoryType),callback, context);}, ConsHotEventTopList:function(PageIndex,callback,context){return new ajax_request(this.url + '?_method=ConsHotEventTopList&_session=no','PageIndex=' + enc(PageIndex),callback, context);}, ConsHotEventBottomList:function(PageIndex,callback,context){return new ajax_request(this.url + '?_method=ConsHotEventBottomList&_session=no','PageIndex=' + enc(PageIndex),callback, context);}, GetTopNavigatioin:function(Page,callback,context){return new ajax_request(this.url + '?_method=GetTopNavigatioin&_session=no','Page=' + enc(Page),callback, context);}, url:'/ajax/AjaxWebMethods.AjaxNewsHandle,AjaxWebMethods.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