rem: var IndexInView = this.indexOfDate(this.calendarWindow.getSelectedDate()); var ThisBox = this.dayBoxItemArray[ IndexInView ];  if( ThisBox ) ThisBox.setAttribute( "monthselected" , "true" ); 
add: var indexInView = this.indexOfDate(this.calendarWindow.getSelectedDate()); if (indexInView in this.dayBoxItemArray) { var thisBox = this.dayBoxItemArray[ indexInView ]; if( thisBox ) thisBox.setAttribute( "monthselected" , "true" ); } 
context: MonthView.prototype.hiliteSelectedDate = function monthView_hiliteSelectedDate( ){   // Clear the old selection if there was one   this.clearSelectedDate();   this.clearSelectedBoxes();   // Set the background for selection   var IndexInView = this.indexOfDate(this.calendarWindow.getSelectedDate());   var ThisBox = this.dayBoxItemArray[ IndexInView ];      if( ThisBox )      ThisBox.setAttribute( "monthselected" , "true" );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/4d83c28abdf92a3318a9c1ab5072e58054a2f6e1/monthView.js/clean/calendar/resources/content/monthView.js