PageSourceSearch

https://dls.gov.jo/ScriptResource.axd?d=bVBdJ5u7mz75JlfYhAePfaQjk1…TVnOxp7nfDg1t1X7ydjy1kVpyM9rbtV0&t=5e95cc64

js dls.gov.jo collected 2026-09-24 10:57:05 UTC 33,399 bytes, 2 lines download raw bytes

1Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.CalendarBehavior=function(e){Sys.Extended.UI.CalendarBehavior.initializeBase(this,[e]),this._textbox=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(e),this._format="d",this._todaysDateFormat="MMMM d, yyyy",this._daysModeTitleFormat="MMMM, yyyy",this._cssClass="ajax__calendar",this._enabled=!0,this._animated=!0,this._buttonID=null,this._layoutRequested=0,this._layoutSuspended=!1,this._button=null,this._popupMouseDown=!1,this._selectedDate=null,this._startDate=null,this._endDate=null,this._visibleDate=null,this._todaysDate=null,this._firstDayOfWeek=Sys.Extended.UI.FirstDayOfWeek.Default,this._firstPopUp=!0,this._container=null,this._popupDiv=null,this._header=null,this._prevArrow=null,this._nextArrow=null,this._title=null,this._body=null,this._today=null,this._days=null,this._daysTable=null,this._daysTableHeader=null,this._daysTableHeaderRow=null,this._daysBody=null,this._months=null,this._monthsTable=null,this._monthsBody=null,this._years=null,this._yearsTable=null,this._yearsBody=null,this._popupPosition=Sys.Extended.UI.CalendarPosition.BottomLeft,this._defaultView=Sys.Extended.UI.CalendarDefaultView.Days,this._popupBehavior=null,this._modeChangeAnimation=null,this._modeChangeMoveTopOrLeftAnimation=null,this._modeChangeMoveBottomOrRightAnimation=null,this._mode="days",this._selectedDateChanging=!1,this._isOpen=!1,this._isAnimating=!1,this._clearTime=!1,this._width=170,this._height=139,this._modes={days:null,months:null,years:null},this._modeOrder={days:0,months:1,years:2},this._blur=new Sys.Extended.UI.DeferredOperation(1,this,this.blur),this._button$delegates={click:Function.createDelegate(this,this._button_onclick),keypress:Function.createDelegate(this,this._button_onkeypress),blur:Function.createDelegate(this,this._button_onblur)},this._element$delegates={change:Function.createDelegate(this,this._element_onchange),keypress:Function.createDelegate(this,this._element_onkeypress),click:Function.createDelegate(this,this._element_onclick),focus:Function.createDelegate(this,this._element_onfocus),blur:Function.createDelegate(this,this._element_onblur)},this._popup$delegates={mousedown:Function.createDelegate(this,this._popup_onmousedown),mouseup:Function.createDelegate(this,this._popup_onmouseup),drag:Function.createDelegate(this,this._popup_onevent),dragstart:Function.createDelegate(this,this._popup_onevent)},this._cell$delegates={mouseover:Function.createDelegate(this,this._cell_onmouseover),mouseout:Function.createDelegate(this,this._cell_onmouseout),click:Function.createDelegate(this,this._cell_onclick)}},Sys.Extended.UI.CalendarBehavior.prototype={get_clearTime:function(){return this._clearTime},set_clearTime:function(e){this._clearTime!=e&&(this._clearTime=e,this.raisePropertyChanged("clearTime"))},get_animated:function(){return this._animated},set_animated:function(e){this._animated!=e&&(this._animated=e,this.raisePropertyChanged("animated"))},get_enabled:function(){return this._enabled},set_enabled:function(e){this._enabled!=e&&(this._enabled=e,this.raisePropertyChanged("enabled"))},get_button:function(){return this._button},set_button:function(e){this._button!=e&&(this._button&&this.get_isInitialized()&&$common.removeHandlers(this._button,this._button$delegates),this._button=e,this._button&&this.get_isInitialized()&&$addHandlers(this._button,this._button$delegates),this.raisePropertyChanged("button"))},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(e){this._popupPosition!=e&&(this._popupPosition=e,this.raisePropertyChanged("popupPosition"))},get_startDate:function(){return this._startDate},set_startDate:function(e){this._startDate!=e&&(this._startDate=this._parseDateSortableFormat(e),this.raisePropertyChanged("startDate"))},get_endDate:function(){return this._endDate},set_endDate:function(e){this._endDate!=e&&(this._endDate=this._parseDateSortableFormat(e),this.raisePropertyChanged("endDate"))},get_format:function(){return this._format},set_format:function(e){this._format!=e&&(this._format=e,this.raisePropertyChanged("format"))},get_todaysDateFormat:function(){return this._todaysDateFormat},set_todaysDateFormat:function(e){this._todaysDateFormat!=e&&(this._todaysDateFormat=e,this.raisePropertyChanged("todaysDateFormat"))},get_daysModeTitleFormat:function(){return this._daysModeTitleFormat},set_daysModeTitleFormat:function(e){this._daysModeTitleFormat!=e&&(this._daysModeTitleFormat=e,this.raisePropertyChanged("daysModeTitleFormat"))},get_selectedDate:function(){if(null==this._selectedDate){var e=this._textbox.get_Value();e&&(e=this._parseTextValue(e),e&&(this._selectedDate=e))}return this._selectedDate},set_selectedDate:function(e){if(e&&String.isInstanceOfType(e)&&0!=e.length&&(e=this._parseDateSortableFormat(e)),this._selectedDate!=e){this._selectedDate=e,this._selectedDateChanging=!0;var t="";if(e&&(t=e.localeFormat(this._format),!this._clearTime)){var s=this._textbox.get_Value();s&&(s=this._parseTextValue(s)),s&&e!=s.getDateOnly()&&(e.setHours(s.getHours()),e.setMinutes(s.getMinutes()),e.setSeconds(s.getSeconds()),e.setMilliseconds(s.getMilliseconds()),t=e.localeFormat(this._format))}t!=this._textbox.get_Value()&&(this._textbox.set_Value(t),this._fireChanged()),this._selectedDateChanging=!1,this.invalidate(),this.raisePropertyChanged("selectedDate")}},get_defaultView:function(){return this._defaultView},set_defaultView:function(e){this._defaultView!=e&&(this._defaultView=e,this.raisePropertyChanged("defaultView"))},get_visibleDate:function(){return this._visibleDate},set_visibleDate:function(e){e&&String.isInstanceOfType(e)&&0!=e.length&&(e=new Date(e)),this._visibleDate!=e&&(this._switchView(e,Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom,!this._isOpen),this.raisePropertyChanged("visibleDate"))},get_isOpen:function(){return this._isOpen},get_todaysDate:function(){return null!=this._todaysDate?this._todaysDate:new Date},set_todaysDate:function(e){this._todaysDate!=e&&(this._todaysDate=e,this.invalidate(),this.raisePropertyChanged("todaysDate"))},get_firstDayOfWeek:function(){return this._firstDayOfWeek},set_firstDayOfWeek:function(e){this._firstDayOfWeek!=e&&(this._firstDayOfWeek=e,this.invalidate(),this.raisePropertyChanged("firstDayOfWeek"))},get_cssClass:function(){return this._cssClass},set_cssClass:function(e){this._cssClass!=e&&(this._cssClass&&this.get_isInitialized()&&Sys.UI.DomElement.removeCssClass(this._container,this._cssClass),this._cssClass=e,this._cssClass&&this.get_isInitialized()&&Sys.UI.DomElement.addCssClass(this._container,this._cssClass),this.raisePropertyChanged("cssClass"))},get_todayButton:function(){return this._today},get_dayCell:function(e,t){return this._daysBody?this._daysBody.rows[e].cells[t].firstChild:null},add_showing:function(e){this.get_events().addHandler("showing",e)},remove_showing:function(e){this.get_events().removeHandler("showing",e)},raise_showing:function(e){var t=this.get_events().getHandler("showing");t&&t(this,e)}
1,raiseShowing:function(e){Sys.Extended.Deprecated("raiseShowing(eventArgs)","raise_showing(eventArgs)"),this.raise_showing(e)},add_shown:function(e){this.get_events().addHandler("shown",e)},remove_shown:function(e){this.get_events().removeHandler("shown",e)},raise_shown:function(){var e=this.get_events().getHandler("shown");e&&e(this,Sys.EventArgs.Empty)},raiseShown:function(){Sys.Extended.Deprecated("raiseShown","raise_shown"),this.raise_shown()},add_hiding:function(e){this.get_events().addHandler("hiding",e)},remove_hiding:function(e){this.get_events().removeHandler("hiding",e)},raise_hiding:function(e){var t=this.get_events().getHandler("hiding");t&&t(this,e)},raiseHiding:function(e){Sys.Extended.Deprecated("raiseHiding(eventArgs)","raise_hiding(eventArgs)"),this.raise_hiding(e)},add_hidden:function(e){this.get_events().addHandler("hidden",e)},remove_hidden:function(e){this.get_events().removeHandler("hidden",e)},raise_hidden:function(){var e=this.get_events().getHandler("hidden");e&&e(this,Sys.EventArgs.Empty)},raiseHidden:function(){Sys.Extended.Deprecated("raiseHidden","raise_hidden"),this.raise_hidden()},add_dateSelectionChanged:function(e){this.get_events().addHandler("dateSelectionChanged",e)},remove_dateSelectionChanged:function(e){this.get_events().removeHandler("dateSelectionChanged",e)},raise_dateSelectionChanged:function(){var e=this.get_events().getHandler("dateSelectionChanged");e&&e(this,Sys.EventArgs.Empty)},raiseDateSelectionChanged:function(){Sys.Extended.Deprecated("raiseDateSelectionChanged","raise_dateSelectionChanged"),this.raise_dateSelectionChanged()},initialize:function(){Sys.Extended.UI.CalendarBehavior.callBaseMethod(this,"initialize");var e=this.get_element();$addHandlers(e,this._element$delegates),this._button&&$addHandlers(this._button,this._button$delegates),this._modeChangeMoveTopOrLeftAnimation=new Sys.Extended.UI.Animation.LengthAnimation(null,null,null,"style",null,0,0,"px"),this._modeChangeMoveBottomOrRightAnimation=new Sys.Extended.UI.Animation.LengthAnimation(null,null,null,"style",null,0,0,"px"),this._modeChangeAnimation=new Sys.Extended.UI.Animation.ParallelAnimation(null,.25,null,[this._modeChangeMoveTopOrLeftAnimation,this._modeChangeMoveBottomOrRightAnimation]);var t=this.get_selectedDate();t&&this.set_selectedDate(t)},dispose:function(){if(this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null),this._modes=null,this._modeOrder=null,this._modeChangeMoveTopOrLeftAnimation&&(this._modeChangeMoveTopOrLeftAnimation.dispose(),this._modeChangeMoveTopOrLeftAnimation=null),this._modeChangeMoveBottomOrRightAnimation&&(this._modeChangeMoveBottomOrRightAnimation.dispose(),this._modeChangeMoveBottomOrRightAnimation=null),this._modeChangeAnimation&&(this._modeChangeAnimation.dispose(),this._modeChangeAnimation=null),this._container&&(this._container.parentNode&&this._container.parentNode.removeChild(this._container),this._container=null),this._popupDiv&&($common.removeHandlers(this._popupDiv,this._popup$delegates),this._popupDiv=null),this._prevArrow&&($common.removeHandlers(this._prevArrow,this._cell$delegates),this._prevArrow=null),this._nextArrow&&($common.removeHandlers(this._nextArrow,this._cell$delegates),this._nextArrow=null),this._title&&($common.removeHandlers(this._title,this._cell$delegates),this._title=null),this._today&&($common.removeHandlers(this._today,this._cell$delegates),this._today=null),this._button&&($common.removeHandlers(this._button,this._button$delegates),this._button=null),this._daysBody){for(var e=0;e<this._daysBody.rows.length;e++)for(var t=this._daysBody.rows[e],s=0;s<t.cells.length;s++)$common.removeHandlers(t.cells[s].firstChild,this._cell$delegates);this._daysBody=null}if(this._monthsBody){for(var e=0;e<this._monthsBody.rows.length;e++)for(var t=this._monthsBody.rows[e],s=0;s<t.cells.length;s++)$common.removeHandlers(t.cells[s].firstChild,this._cell$delegates);this._monthsBody=null}if(this._yearsBody){for(var e=0;e<this._yearsBody.rows.length;e++)for(var t=this._yearsBody.rows[e],s=0;s<t.cells.length;s++)$common.removeHandlers(t.cells[s].firstChild,this._cell$delegates);this._yearsBody=null}
1var i=this.get_element();$common.removeHandlers(i,this._element$delegates),Sys.Extended.UI.CalendarBehavior.callBaseMethod(this,"dispose")},show:function(){if(this._ensureCalendar(),!this._isOpen){var e=new Sys.CancelEventArgs;if(this.raise_showing(e),e.get_cancel())return;if(this._isOpen=!0,this._popupBehavior.show(),this._firstPopUp){switch(this._switchView(null,Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom,!0),this._defaultView){case Sys.Extended.UI.CalendarDefaultView.Months:this._switchMode("months",!0);break;case Sys.Extended.UI.CalendarDefaultView.Years:this._switchMode("years",!0)}this._firstPopUp=!1}this.raise_shown()}},hide:function(){if(this._isOpen){var e=new Sys.CancelEventArgs;if(this.raise_hiding(e),e.get_cancel())return;this._container&&this._popupBehavior.hide(),this._isOpen=!1,this.raise_hidden(),this._popupMouseDown=!1}},focus:function(){this._button?this._button.focus():this.get_element().focus()},blur:function(e){e||Sys.Browser.agent!==Sys.Browser.Opera?(this._popupMouseDown||this.hide(),this._popupMouseDown=!1):this._blur.post(!0)},suspendLayout:function(){this._layoutSuspended++},resumeLayout:function(){this._layoutSuspended--,this._layoutSuspended<=0&&(this._layoutSuspended=0,this._layoutRequested&&this._performLayout())},invalidate:function(){this._layoutSuspended>0?this._layoutRequested=!0:this._performLayout()},_buildCalendar:function(){var e=this.get_element(),t=this.get_id();this._container=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_container"},cssClasses:[this._cssClass],visible:!1},e.parentNode),this._popupDiv=$common.createElementFromTemplate({nodeName:"div",events:this._popup$delegates,properties:{id:t+"_popupDiv"},cssClasses:["ajax__calendar_container"]},this._container)},_buildHeader:function(){var e=this.get_id();this._header=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_header"},cssClasses:["ajax__calendar_header"]},this._popupDiv);var t=$common.createElementFromTemplate({nodeName:"div"},this._header);this._prevArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_prevArrow",mode:"prev"},events:this._cell$delegates,cssClasses:["ajax__calendar_prev"]},t);var s=$common.createElementFromTemplate({nodeName:"div"},this._header);this._nextArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_nextArrow",mode:"next"},events:this._cell$delegates,cssClasses:["ajax__calendar_next"]},s);var i=$common.createElementFromTemplate({nodeName:"div"},this._header);this._title=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_title",mode:"title"},events:this._cell$delegates,cssClasses:["ajax__calendar_title"]},i)},_buildBody:function(){this._body=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_body"},cssClasses:["ajax__calendar_body"]},this._popupDiv),this._buildDays(),this._buildMonths(),this._buildYears()},_buildFooter:function(){var e=$common.createElementFromTemplate({nodeName:"div"},this._popupDiv);this._today=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_today",mode:"today"},events:this._cell$delegates,cssClasses:["ajax__calendar_footer","ajax__calendar_today"]},e)},_buildDays:function(){var e=(Sys.CultureInfo.CurrentCulture.dateTimeFormat,this.get_id());this._days=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_days"},cssClasses:["ajax__calendar_days"]},this._body),this._modes.days=this._days,this._daysTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:e+"_daysTable",style:{margin:"auto"}}},this._days),this._daysTableHeader=$common.createElementFromTemplate({nodeName:"thead",properties:{id:e+"_daysTableHeader"}},this._daysTable),this._daysTableHeaderRow=$common.createElementFromTemplate({nodeName:"tr",properties:{id:e+"_daysTableHeaderRow"}},this._daysTableHeader);for(var t=0;t<7;t++){var s=$common.createElementFromTemplate({nodeName:"td"},this._daysTableHeaderRow);$common.createElementFromTemplate({nodeName:"div",cssClasses:["ajax__calendar_dayname"]},s)}this._daysBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:e+"_daysBody"}},this._daysTable);for(var t=0;t<6;t++)for(var i=$common.createElementFromTemplate({nodeName:"tr"},this._daysBody),a=0;a<7;a++){var s=$common.createElementFromTemplate({nodeName:"td"},i);$common.createElementFromTemplate({nodeName:"div",properties:{mode:"day",id:e+"_day_"+t+"_"+a,innerHTML:"&nbsp;"}
1,events:this._cell$delegates,cssClasses:["ajax__calendar_day"]},s)}},_buildMonths:function(){var e=Sys.CultureInfo.CurrentCulture.dateTimeFormat,t=this.get_id();this._months=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_months"},cssClasses:["ajax__calendar_months"],visible:!1},this._body),this._modes.months=this._months,this._monthsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:t+"_monthsTable",style:{margin:"auto"}}},this._months),this._monthsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:t+"_monthsBody"}},this._monthsTable);for(var s=0;s<3;s++)for(var i=$common.createElementFromTemplate({nodeName:"tr"},this._monthsBody),a=0;a<4;a++){var n=$common.createElementFromTemplate({nodeName:"td"},i);$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_month_"+s+"_"+a,mode:"month",month:4*s+a,innerHTML:"<br />"+e.AbbreviatedMonthNames[4*s+a]},events:this._cell$delegates,cssClasses:["ajax__calendar_month"]},n)}},_buildYears:function(){var e=this.get_id();this._years=$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_years"},cssClasses:["ajax__calendar_years"],visible:!1},this._body),this._modes.years=this._years,this._yearsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:e+"_yearsTable",style:{margin:"auto"}}},this._years),this._yearsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:e+"_yearsBody"}},this._yearsTable);for(var t=0;t<3;t++)for(var s=$common.createElementFromTemplate({nodeName:"tr"},this._yearsBody),i=0;i<4;i++){var a=$common.createElementFromTemplate({nodeName:"td"},s);$common.createElementFromTemplate({nodeName:"div",properties:{id:e+"_year_"+t+"_"+i,mode:"year",year:4*t+i-1},events:this._cell$delegates,cssClasses:["ajax__calendar_year"]},a)}},_isInDateRange:function(e,t,s){switch(t){case"d":if(this._startDate&&this._getDateOnly(e)<this._getDateOnly(this._startDate))return!1;if(this._endDate&&this._getDateOnly(e)>this._getDateOnly(this._endDate))return!1;break;case"M":if(this._startDate&&this._getMonthOnly(e)<this._getMonthOnly(this._startDate))return!1;if(this._endDate&&this._getMonthOnly(e)>this._getMonthOnly(this._endDate))return!1;break;case"y":if(this._startDate&&e.getFullYear()<this._startDate.getFullYear())return!1;if(this._endDate&&e.getFullYear()>this._endDate.getFullYear())return!1;break;case"yy":if(this._startDate&&this._endDate)return this._isInYearsDateRange(e,s);if(!this._startDate&&!this._endDate)return!0;var i=this._getRangeStartYear(e);if(this._endDate&&i<this._endDate.getFullYear())return!0;var a=this._getRangeEndYear(e);return!!(this._startDate&&a>this._startDate.getFullYear())}return!0},_isInYearsDateRange:function(e,t){var s=this._getRangeStartYear(e),i=this._getRangeEndYear(e);switch(t){case Sys.Extended.UI.CalendarSwitchViewMode.PreviousRange:return i>this._startDate.getFullYear();case Sys.Extended.UI.CalendarSwitchViewMode.NextRange:return s<this._endDate.getFullYear();case Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom:return s>this._startDate.getFullYear()&&i<this._endDate.getFullYear();default:throw Error.invalidOperation()}},_getRangeStartYear:function(e){return e.getFullYear()},_getRangeEndYear:function(e){return e.getFullYear()+9},_getDateOnly:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},_getMonthOnly:function(e){return new Date(e.getFullYear(),e.getMonth(),1)},_performLayout:function(){var e=this.get_element();if(e&&this.get_isInitialized()&&this._isOpen){var t=Sys.CultureInfo.CurrentCulture.dateTimeFormat,s=(this.get_selectedDate(),this._getEffectiveVisibleDate()),i=this.get_todaysDate();switch(this._mode){case"days":var a=this._getFirstDayOfWeek(),n=s.getDay()-a;n<=0&&(n+=7);var o=new Date(s);o.setDate(o.getDate()-n);for(var r=new Date(o),h=0;h<7;h++){var d=this._daysTableHeaderRow.cells[h].firstChild;d.firstChild&&d.removeChild(d.firstChild),d.appendChild(document.createTextNode(t.ShortestDayNames[(h+a)%7]))}for(var l=0;l<6;l++)for(var _=this._daysBody.rows[l],m=0;m<7;m++){var d=_.cells[m].firstChild;d.firstChild&&d.removeChild(d.firstChild),d.appendChild(document.createTextNode(r.getDate())),d.title=r.localeFormat("D"),d.date=r,$common.removeCssClasse
1s(d.parentNode,["ajax__calendar_other","ajax__calendar_active","ajax__calendar_today"]),this._isInDateRange(r,"d")?($common.removeCssClasses(d.parentNode,["ajax__calendar_invalid","ajax__calendar_other","ajax__calendar_active",""]),Sys.UI.DomElement.addCssClass(d.parentNode,this._getCssClass(d.date,"d"))):($common.removeCssClasses(d.parentNode,["ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(d.parentNode,"ajax__calendar_invalid")),r=new Date(r),r.setDate(r.getDate()+1)}this._prevArrow.date=new Date(s.getFullYear(),s.getMonth()-1,1),this._nextArrow.date=new Date(s.getFullYear(),s.getMonth()+1,1),this._title.firstChild&&this._title.removeChild(this._title.firstChild),this._title.appendChild(document.createTextNode(s.localeFormat(this.get_daysModeTitleFormat()))),this._title.date=s;break;case"months":for(var h=0;h<this._monthsBody.rows.length;h++)for(var c=this._monthsBody.rows[h],u=0;u<c.cells.length;u++){var g=c.cells[u].firstChild;g.date=new Date(s.getFullYear(),g.month,1),g.title=g.date.localeFormat("Y"),this._isInDateRange(g.date,"M")?($common.removeCssClasse
1s(g.parentNode,["ajax__calendar_invalid","ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(g.parentNode,this._getCssClass(g.date,"M"))):($common.removeCssClasses(g.parentNode,["ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(g.parentNode,"ajax__calendar_invalid"))}this._title.firstChild&&this._title.removeChild(this._title.firstChild),this._title.appendChild(document.createTextNode(s.localeFormat("yyyy"))),this._title.date=s,this._prevArrow.date=new Date(s.getFullYear()-1,0,1),this._nextArrow.date=new Date(s.getFullYear()+1,0,1);break;case"years":for(var p=10*Math.floor(s.getFullYear()/10),h=0;h<this._yearsBody.rows.length;h++)for(var c=this._yearsBody.rows[h],u=0;u<c.cells.length;u++){var g=c.cells[u].firstChild;g.date=new Date(p+g.year,0,1),g.firstChild?g.removeChild(g.lastChild):g.appendChild(document.createElement("br")),g.appendChild(document.createTextNode(p+g.year)),this._isInDateRange(g.date,"y")?($common.removeCssClasses(g.parentNode,["ajax__calendar_invalid","ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(g.parentNode,this._getCssClass(g.date,"y"))):($common.removeCssClasse
1s(g.parentNode,["ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(g.parentNode,"ajax__calendar_invalid"))}this._title.firstChild&&this._title.removeChild(this._title.firstChild),this._title.appendChild(document.createTextNode(p.toString()+"-"+(p+9).toString())),this._title.date=s,this._prevArrow.date=new Date(p-10,0,1),this._nextArrow.date=new Date(p+10,0,1)}this._today.firstChild&&this._today.removeChild(this._today.firstChild),$common.removeCssClasses(this._today.parentNode,["ajax__calendar_invalid"]),this._today.appendChild(document.createTextNode(String.format(Sys.Extended.UI.Resources.Calendar_Today,i.localeFormat(this.get_todaysDateFormat())))),this._isInDateRange(i,"d")||Sys.UI.DomElement.addCssClass(this._today.parentNode,"ajax__calendar_invalid"),this._today.date=i}},_ensureCalendar:function(){if(!this._container){var e=this.get_element();this._buildCalendar(),this._buildHeader(),this._buildBody(),this._buildFooter(),this._popupBehavior=new $create(Sys.Extended.UI.PopupBehavior,{parentElement:e},{},{},this._container),this._popupPosition==Sys.Extended.UI.CalendarPosition.TopLeft?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopLeft):this._popupPosition==Sys.Extended.UI.CalendarPosition.TopRight?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopRight):this._popupPosition==Sys.Extended.UI.CalendarPosition.BottomRight?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.BottomRight):this._popupPosition==Sys.Extended.UI.CalendarPosition.Right?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.Right):this._popupPosition==Sys.Extended.UI.CalendarPosition.Left?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.Left):this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.BottomLeft)}},_fireChanged:function(){var e=this.get_element();if(document.createEventObject)e.fireEvent("onchange");else if(document.createEvent){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!0),e.dispatchEvent(t)}},_switchView:function(e,t,s){if(!this._isAnimating&&(!e||this._canSwitchMonth(e,t))){var i=this._getEffectiveVisibleDate();e&&e.getFullYear()==i.getFullYear()&&e.getMonth()==i.getMonth()&&(s=!0),this._animated&&!s?this._animateViewSwitch(e,i):(this._visibleDate=e,this.invalidate())}},_animateViewSwitch:function(e,t){this._isAnimating=!0;var s=this._modes[this._mode],i=s.cloneNode(!0);this._body.appendChild(i),t>e?($common.setLocation(s,{x:-162,y:0}),$common.setVisible(s,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(s),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(s,{x:162,y:0}),$common.setVisible(s,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(s),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width)),this._visibleDate=e,this.invalidate();var a=Function.createDelegate(this,function(){this._body.removeChild(i),i=null,this._isAnimating=!1,this._modeChangeAnimation.remove_ended(a)});this._modeChangeAnimation.add_ended(a),this._modeChangeAnimation.play()},_canSwitchMonth:function(e,t){switch(this._mode){case"days":if(!this._isInDateRange(e,"M",t))return!1;break;case"months":if(!this._isInDateRange(e,"y",t))return!1;break;case"years":if(!this._isInDateRange(e,"yy",t))return!1}return!0},_switchMode:function(e,t){if(!this._isAnimating&&this._mode!=e){var s=this._modeOrder[this._mode]<this._modeOrder[e],i=this._modes[this._mode],a=this._modes[e];if(this._mode=e,this._animated&&!t){this._isAnimating=!0,this.invalidate(),s?($common.setLocation(a,{x:0,y:-this._height}),$common.setVisible(a,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("top"),this._modeChangeMoveTopOrLeftAnimation.set_target(a),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._height),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("top"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._height)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("top"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._height),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(a,{x:0,y:139}),$common.setVisible(a,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("top"),this._modeChangeMoveBottomOrRightAnimation.set_target(a),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._height));var n=Function.createDelegate(this,function(){this._isAnimating=!1,this._modeChangeAnimation.remove_ended(n)});this._modeChangeAnimation.add_ended(n),this._modeChangeAnimation.play()}else this._mode=e,$common.setVisible(i,!1),this.invalidate(),$common.setVisible(a,!0),$common.setLocation(a,{x:0,y:0})}}
1,_isSelected:function(e,t){var s=this.get_selectedDate();if(!s)return!1;switch(t){case"d":if(e.getDate()!=s.getDate())return!1;case"M":if(e.getMonth()!=s.getMonth())return!1;case"y":if(e.getFullYear()!=s.getFullYear())return!1}return!0},_isOther:function(e,t){var s=this._getEffectiveVisibleDate();switch(t){case"d":return e.getFullYear()!=s.getFullYear()||e.getMonth()!=s.getMonth();case"M":return!1;case"y":var i=10*Math.floor(s.getFullYear()/10);return e.getFullYear()<i||i+10<=e.getFullYear()}return!1},_isTodaysDate:function(e){return this._getDateOnly(this.get_todaysDate()).valueOf()===this._getDateOnly(e).valueOf()},_getCssClass:function(e,t){return this._isSelected(e,t)?"ajax__calendar_active":this._isOther(e,t)?"ajax__calendar_other":this._isTodaysDate(e)?"ajax__calendar_today":""},_getEffectiveVisibleDate:function(){var e=this.get_visibleDate();return null==e&&(e=this.get_selectedDate()),null==e&&(e=this.get_todaysDate()),this._endDate&&e>this._endDate?e=this._endDate:this._startDate&&e<this._startDate&&(e=this._startDate),e=new Date(e),e.setDate(1),this._getDateOnly(e)},getMonthStartDate:function(e){var t=new Date(e);return t.setDate(1),this._getDateOnly(t)},_getFirstDayOfWeek:function(){return this.get_firstDayOfWeek()!=Sys.Extended.UI.FirstDayOfWeek.Default?this.get_firstDayOfWeek():Sys.CultureInfo.CurrentCulture.dateTimeFormat.FirstDayOfWeek},_parseTextValue:function(e){var t=null;return e&&(t=Date.parseLocale(e,this.get_format()),t&&t.getFullYear()<100&&t.setYear(t.getFullYear())),isNaN(t)&&(t=null),t},_element_onfocus:function(e){this._enabled&&(this._button||(this.show(),this._popupMouseDown=!1))},_element_onblur:function(e){this._enabled&&(this._button||this.blur())},_element_onchange:function(e){if(!this._selectedDateChanging){var t=this._parseTextValue(this._textbox.get_Value());this._selectedDate=t,this._isOpen&&this._switchView(this._selectedDate,Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom,null==this._selectedDate)}},_element_onkeypress:function(e){this._enabled&&(this._button||e.charCode!=Sys.UI.Key.esc||(e.stopPropagation(),e.preventDefault(),this.hide()))},_element_onclick:function(e){this._enabled&&(this._button||(this.show(),this._popupMouseDown=!1))},_popup_onevent:function(e){e.stopPropagation(),e.preventDefault()},_popup_onmousedown:function(e){this._popupMouseDown=!0},_popup_onmouseup:function(e){Sys.Browser.agent===Sys.Browser.Opera&&this._blur.get_isPending()&&this._blur.cancel(),this._popupMouseDown=!1,this.focus()},_cell_onmouseover:function(e){if(e.stopPropagation(),Sys.Browser.agent===Sys.Browser.Safari)for(var t=0;t<this._daysBody.rows.length;t++)for(var s=this._daysBody.rows[t],i=0;i<s.cells.length;i++)Sys.UI.DomElement.removeCssClass(s.cells[i].firstChild.parentNode,"ajax__calendar_hover");var a=e.target;Sys.UI.DomElement.addCssClass(a.parentNode,"ajax__calendar_hover")},_cell_onmouseout:function(e){e.stopPropagation();var t=e.target;Sys.UI.DomElement.removeCssClass(t.parentNode,"ajax__calendar_hover")},_cell_onclick:function(e){if(e.stopPropagation(),e.preventDefault(),this._enabled){var t=e.target;if(t.parentNode.className.indexOf("ajax__calendar_invalid")==-1){var s=this._getEffectiveVisibleDate();switch(Sys.UI.DomElement.removeCssClass(t.parentNode,"ajax__calendar_hover"),t.mode){case"prev":this._switchView(t.date,Sys.Extended.UI.CalendarSwitchViewMode.PreviousRange);break;case"next":this._switchView(t.date,Sys.Extended.UI.CalendarSwitchViewMode.NextRange);break;case"title":switch(this._mode){case"days":this._switchMode("months");break;case"months":this._switchMode("years")}break;case"month":t.month==s.getMonth()?this._switchMode("days"):(this._visibleDate=t.date,this._switchMode("days"));break;case"year":t.date.getFullYear()==s.getFullYear()?this._switchMode("months"):(this._visibleDate=t.date,this._switchMode("months"));break;
2case"day":this.set_selectedDate(t.date),this._switchView(t.date,Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom),this._blur.post(!0),this.raise_dateSelectionChanged();break;case"today":this.set_selectedDate(t.date),this._switchView(t.date,Sys.Extended.UI.CalendarSwitchViewMode.RangeZoom),this._blur.post(!0),this.raise_dateSelectionChanged()}}}},_button_onclick:function(e){e.preventDefault(),e.stopPropagation(),this._enabled&&0!=e.clientX&&(this._isOpen?this.hide():this.show(),this.focus(),this._popupMouseDown=!1,this._visibleDate!=this._selectedDate&&(this._visibleDate=this._selectedDate,this.invalidate()))},_button_onblur:function(e){this._enabled&&(this._popupMouseDown||this.hide(),this._popupMouseDown=!1)},_button_onkeypress:function(e){this._enabled&&(e.charCode==Sys.UI.Key.esc&&(e.stopPropagation(),e.preventDefault(),this.hide()),this._popupMouseDown=!1)},_parseDateSortableFormat:function(e){var t=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(e);return new Date(t[1],t[2]-1,t[3],t[4],t[5],t[6])}},Sys.Extended.UI.CalendarBehavior.registerClass("Sys.Extended.UI.CalendarBehavior",Sys.Extended.UI.BehaviorBase),Sys.Extended.UI.CalendarPosition={BottomLeft:0,BottomRight:1,TopLeft:2,TopRight:3,Right:4,Left:5},Sys.Extended.UI.CalendarDefaultView={Days:0,Months:1,Years:2},Sys.Extended.UI.CalendarSwitchViewMode={PreviousRange:0,NextRange:1,RangeZoom:2};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.