rem: prevCommand.setAttribute("label", prevCommand.getAttribute("label-"+newView)); 
add: prevCommand.setAttribute("label", prevCommand.getAttribute(labelAttribute)); 
context: CalendarWindow.prototype.switchToView = function calWin_switchToView( newView ){    var viewElement = document.getElementById(newView);    // If this is the first time we've shown the view, (or if someone changed    // our composite), then we need to set all this stuff.    if (viewElement.displayCalendar != getDisplayComposite()) {        viewElement.controller = gViewController;        viewElement.displayCalendar = getDisplayComposite();        viewElement.timezone = calendarDefaultTimezone();        this.EventSelection.addObserver(viewElement.selectionObserver);    }    var deck = document.getElementById("view-deck");    var day;    try {        day = deck.selectedPanel.selectedDay;    } catch(ex) {} // Fails if no view has ever been shown this session    // Should only happen on first startup    if (!day)        day = now();    deck.selectedPanel = viewElement;    deck.selectedPanel.goToDay(day);    var prevCommand = document.getElementById("calendar-go-menu-previous");    prevCommand.setAttribute("label", prevCommand.getAttribute("label-"+newView));    var nextCommand = document.getElementById("calendar-go-menu-next");    nextCommand.setAttribute("label", nextCommand.getAttribute("label-"+newView));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/67f9d85622b78fba73d946fd9591b42ff2498878/calendarWindow.js/buggy/calendar/resources/content/calendarWindow.js