rem: var dayNumber = startTime.getDay();  
context: function getDayOfWeek( ){   //get the day number for today.   var startTime = getDateTimeFieldValue( "start-date-text" );      var dayNumber = startTime.getDay();   var dateStringBundle = srGetStrBundle("chrome://calendar/locale/dateFormat.properties");   //add one to the dayNumber because in the above prop. file, it starts at day1, but JS starts at 0   var oneBasedDayNumber = parseInt( dayNumber ) + 1;      return( dateStringBundle.GetStringFromName( "day."+oneBasedDayNumber+".name" ) );   }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendarEventDialog.js/buggy/calendar/resources/content/calendarEventDialog.js