rem: for ( i = 0; i < 24; i++ ) { 
add: for (var i = 0; i < 24; i++ ) { 
context: WeekView.prototype.hiliteSelectedDate = function multiweekView_hiliteSelectedDate( ){   // Clear the old selection if there was one      this.clearSelectedDate();   this.clearSelectedEvent();      // get the events for the day and loop through them   var FirstDay = new Date( gHeaderDateItemArray[1].getAttribute( "date" ) );   var LastDay  = new Date( gHeaderDateItemArray[7].getAttribute( "date" ) );   LastDay.setHours( 23 );   LastDay.setMinutes( 59 );   LastDay.setSeconds( 59 );   var selectedDay = this.calendarWindow.getSelectedDate();      if ( selectedDay.getTime() > FirstDay.getTime() && selectedDay.getTime() < LastDay.getTime() ) {      var ThisDate;      //today is visible, get the day index for today      for ( var dayIndex = 1; dayIndex <= 7; ++dayIndex ) {         ThisDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) );         if ( ThisDate.getFullYear() == selectedDay.getFullYear()                && ThisDate.getMonth() == selectedDay.getMonth()                && ThisDate.getDay()   == selectedDay.getDay() ) {            break;         }      }      //dayIndex now contains the box numbers that we need.      for ( i = 0; i < 24; i++ ) {         document.getElementById( "week-tree-day-"+(dayIndex-1)+"-item-"+i ).setAttribute( "weekselected", "true" );      }   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/4d83c28abdf92a3318a9c1ab5072e58054a2f6e1/weekView.js/clean/calendar/resources/content/weekView.js