rem: if (this.calendarWindow.getSelectedDate().getDay() == 0) 
add: if (this.calendarWindow.getSelectedDate().getDay() == 0) 
context: DayView.prototype.refreshDisplay = function dayview_refreshDisplay( ){   // update the title   var dayName = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() );	if (this.calendarWindow.getSelectedDate().getDay() < 2)	{		if (this.calendarWindow.getSelectedDate().getDay() == 0)		{			var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 6 );			var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 );		}		else		{			var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 );			var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 5 );		}	}	else	{		var dayNamePrev1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 1 );		var dayNamePrev2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 2 );	}	if (this.calendarWindow.getSelectedDate().getDay() > 4)	{		if (this.calendarWindow.getSelectedDate().getDay() == 6)		{			var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 6);			var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5);		}		else		{			var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1);			var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() - 5);		}	}	else	{		var dayNameNext1 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 1);		var dayNameNext2 = this.calendarWindow.dateFormater.getDayName( this.calendarWindow.getSelectedDate().getDay() + 2);	}   var monthName = this.calendarWindow.dateFormater.getMonthName( this.calendarWindow.getSelectedDate().getMonth() );      var dateString = monthName + " " + this.calendarWindow.getSelectedDate().getDate() + " " + this.calendarWindow.getSelectedDate().getFullYear();      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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/76b784fca4394a565ab5193c3d63c72fbff3d57a/calendarDayView.js/buggy/calendar/resources/content/calendarDayView.js