rem: deck.selectedPanel = document.getElementById(newView); 
add: deck.selectedPanel = viewElement; 
context: CalendarWindow.prototype.switchToView = function calWin_switchToView( newView ){    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 = document.getElementById(newView);    deck.selectedPanel.goToDay(day);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5b3c96e6c23416bbc093040f8a9862ca498059c4/calendarWindow.js/buggy/calendar/resources/content/calendarWindow.js