rem: var nextDate;  if(goWeeks){ nextDate = new Date(  this.calendarWindow.selectedDate.getFullYear(),  this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 7 * goWeeks ); this.goToDay( nextDate ); }else{ nextDate = new Date(  this.calendarWindow.selectedDate.getFullYear(),  this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 7 ); this.goToDay( nextDate ); 
add: if (! goWeeks) goWeeks = 1; var startDate = new Date(this.firstDateOfView.getFullYear(), this.firstDateOfView.getMonth(), this.firstDateOfView.getDate() + 7 * goWeeks); var selectedDate = this.calendarWindow.getSelectedDate(); var nextPageStartDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate() + 7 * this.WeeksInView); if (startDate <= selectedDate && selectedDate < nextPageStartDate) {  this.refreshDisplayFromDate(startDate); this.refreshEvents(); } else {  var weekStartDay = this.preferredWeekStart(); var daysAfterWeekStart = (7 + selectedDate.getDay() - weekStartDay) % 7; var offsetDays = 7 * this.PreviousWeeksInView + daysAfterWeekStart; this.calendarWindow.goToDay(new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate() + offsetDays)); 
context: MultiweekView.prototype.goToNext = function multiweekView_goToNext( goWeeks ){     var nextDate;   if(goWeeks){      nextDate = new Date(  this.calendarWindow.selectedDate.getFullYear(),  this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 7 * goWeeks );      this.goToDay( nextDate );   }else{      nextDate = new Date(  this.calendarWindow.selectedDate.getFullYear(),  this.calendarWindow.selectedDate.getMonth(), this.calendarWindow.selectedDate.getDate() + 7 );      this.goToDay( nextDate );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2ca5d9b41bf89db2f7257d389e6a13d3b0e3df3d/multiweekView.js/clean/calendar/resources/content/multiweekView.js