add:   gOnlyWorkdayChecked = document.getElementById( "only-workday-checkbox-1" ).getAttribute("checked") ; gDisplayToDoInViewChecked = document.getElementById( "display-todo-inview-checkbox-1" ).getAttribute("checked") ; 
context: function calendarInit() {	// get the calendar event data source   gEventSource = new CalendarEventDataSource();      // get the Ical Library   gICalLib = gEventSource.getICalLib();      // set up the CalendarWindow instance      gCalendarWindow = new CalendarWindow();      //when you switch to a view, it takes care of refreshing the events, so that call is not needed.   gCalendarWindow.currentView.switchTo( gCalendarWindow.currentView );   // set up the unifinder      prepareCalendarUnifinder();   prepareCalendarToDoUnifinder();      update_date();   		checkForMailNews();   if( window.arguments && window.arguments[0].channel )   {      gCalendarWindow.calendarManager.checkCalendarURL( window.arguments[0].channel );   }   //a bit of a hack since the menulist doesn't remember the selected value        var value = document.getElementById( 'event-filter-menulist' ).value;   document.getElementById( 'event-filter-menulist' ).selectedItem = document.getElementById( 'event-filter-'+value );}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/898600b1428ba1b871d5a2255c54e2f5e957c8cd/calendar.js/buggy/calendar/resources/content/calendar.js