rem: for ( i = 0; i < 24; i++ ) { 
add: for ( 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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c9df57f0cb2a1858b0cca4b4a1f8672cd6d76ef2/weekView.js/buggy/calendar/resources/content/weekView.js