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