rem: if( document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" ) 
add: /* on some machines, we need to check for .selectedItem first */ if( document.getElementById( "event-filter-menulist" ).selectedItem && document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" ) 
context: CalendarWindow.prototype.setSelectedDate = function calWin_setSelectedDate( date ){   // Copy the date because we might mess with it in place      this.selectedDate = new Date( date );   if( document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" )   {      //redraw the top tree      setTimeout( "refreshEventTree( getAndSetEventTable() );", 150 );   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/76b784fca4394a565ab5193c3d63c72fbff3d57a/calendarWindow.js/buggy/calendar/resources/content/calendarWindow.js