rem: var dayTextItemPrev2 = document.getElementById( "-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "-1-day-title" ); var dayTextItem = document.getElementById( "0-day-title" ); var dayTextItemNext1 = document.getElementById( "1-day-title" ); var dayTextItemNext2 = document.getElementById( "2-day-title" ); var daySpecificTextItem = document.getElementById( "0-day-specific-title" ); 
add: var dayTextItemPrev2 = document.getElementById( "d-2-day-title" ); var dayTextItemPrev1 = document.getElementById( "d-1-day-title" ); var dayTextItem = document.getElementById( "d0-day-title" ); var dayTextItemNext1 = document.getElementById( "d1-day-title" ); var dayTextItemNext2 = document.getElementById( "d2-day-title" ); var daySpecificTextItem = document.getElementById( "d0-day-specific-title" ); 
context: DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){   // update the title   var dayNamePrev1;   var dayNamePrev2;   var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() );	if (this.calendarWindow.getSelectedDate().getDay() < 2)	{      if (this.calendarWindow.getSelectedDate().getDay() == 0)		{			dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 );			dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 );		}		else		{			dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 );			dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 );		}	}	else	{		dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 );		dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 );	}	   var dayNameNext1;   var dayNameNext2;      if (this.calendarWindow.getSelectedDate().getDay() > 4)	{		if (this.calendarWindow.getSelectedDate().getDay() == 6)		{			dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6);			dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5);		}		else		{			dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1);			dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5);		}	}	else	{		dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1);		dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2);	}      var weekNumber = DateUtils.getWeekNumber( this.calendarWindow.getSelectedDate() );   var weekViewStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");   var dateString = weekViewStringBundle.GetStringFromName( "Week" )+" "+weekNumber+ ": " + this.calendarWindow.dateFormater.getFormatedDate( this.calendarWindow.getSelectedDate() ) ;      var dayTextItemPrev2 = document.getElementById( "-2-day-title" );   var dayTextItemPrev1 = document.getElementById( "-1-day-title" );   var dayTextItem = document.getElementById( "0-day-title" );   var dayTextItemNext1 = document.getElementById( "1-day-title" );   var dayTextItemNext2 = document.getElementById( "2-day-title" );	var daySpecificTextItem = document.getElementById( "0-day-specific-title" );   dayTextItemPrev2.setAttribute( "value" , dayNamePrev2 );   dayTextItemPrev1.setAttribute( "value" , dayNamePrev1 );   dayTextItem.setAttribute( "value" , dayName );   dayTextItemNext1.setAttribute( "value" , dayNameNext1 );   dayTextItemNext2.setAttribute( "value" , dayNameNext2 );	daySpecificTextItem.setAttribute( "value" , dateString );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/de23120f21a41bdf8ce33e77a824a5844c6731aa/dayView.js/buggy/calendar/resources/content/dayView.js