rem: var view = document.getElementById(aViewType+"-view"); 
add: var view = document.getElementById(aViewType + "-view"); 
context: function switchToView(aViewType) {    var viewDeck = getViewDeck();    var selectedDay;    var currentSelection = [];    try {        selectedDay = viewDeck.selectedPanel.selectedDay;        currentSelection = viewDeck.selectedPanel.getSelectedItems({});    } catch(ex) {        // This dies if no view has even been chosen this session, but that's        // ok because we'll just use now() below.    }     if (!selectedDay)        selectedDay = now();    // Anyone wanting to plug in a view needs to follow this naming scheme    var view = document.getElementById(aViewType+"-view");    viewDeck.selectedPanel = view;    var compositeCal = getCompositeCalendar();    if (view.displayCalendar != compositeCal) {        view.displayCalendar = compositeCal;        view.timezone = calendarDefaultTimezone();        view.controller = calendarViewController;    }    view.goToDay(selectedDay);    view.setSelectedItems(currentSelection.length, currentSelection);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/adf8def97c78eca43decf76e12f684786f6bea7d/calendar-views.js/buggy/calendar/base/content/calendar-views.js