rem: printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome: 
add: var args = new Object();  args.eventSource = gEventSource; args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate();  var categoriesStringBundle = srGetStrBundle("chrome: var defaultWeekStart = categoriesStringBundle.GetStringFromName("defaultWeekStart" ); var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "week.start", defaultWeekStart ); var defaultWeeksInView = categoriesStringBundle.GetStringFromName("defaultWeeksInView" ); var WeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "weeks.inview", defaultWeeksInView ); WeeksInView = ( WeeksInView >= 6 ) ? 6 : WeeksInView ;  var defaultPreviousWeeksInView = categoriesStringBundle.GetStringFromName("defaultPreviousWeeksInView" ); var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "previousweeks.inview", defaultPreviousWeeksInView ); PreviousWeeksInView = ( PreviousWeeksInView >= WeeksInView - 1 ) ? WeeksInView - 1 : PreviousWeeksInView ;  args.startOfWeek=Offset; args.weeksInView=WeeksInView; args.prevWeeksInView=PreviousWeeksInView;  window.openDialog("chrome:   
context: function print(){   printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome://calendar/content/converters/sortEvents.xsl" );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ea6ea8560fbb9990893b6fcc38a572094636d72e/calendar.js/buggy/calendar/resources/content/calendar.js