rem: var args = new Object();  args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate();  var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "week.start", gCalendarBundle.getString("defaultWeekStart" ) ); var WeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "weeks.inview", gCalendarBundle.getString("defaultWeeksInView" ) ); WeeksInView = ( WeeksInView >= 6 ) ? 6 : WeeksInView ;  var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "previousweeks.inview", gCalendarBundle.getString("defaultPreviousWeeksInView" ) ); PreviousWeeksInView = ( PreviousWeeksInView >= WeeksInView - 1 ) ? WeeksInView - 1 : PreviousWeeksInView ;  args.startOfWeek=Offset; args.weeksInView=WeeksInView; args.prevWeeksInView=PreviousWeeksInView;  window.openDialog("chrome: 
add: window.openDialog("chrome: "printdialog","chrome"); 
context: function print(){   var args = new Object();   args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ;   args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate();   var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref,                            "week.start",                            gCalendarBundle.getString("defaultWeekStart" ) );   var WeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref,                                 "weeks.inview",                                 gCalendarBundle.getString("defaultWeeksInView" ) );   WeeksInView = ( WeeksInView >= 6 ) ? 6 : WeeksInView ;   var PreviousWeeksInView = getIntPref(gCalendarWindow.calendarPreferences.calendarPref,                                         "previousweeks.inview",                                         gCalendarBundle.getString("defaultPreviousWeeksInView" ) );   PreviousWeeksInView = ( PreviousWeeksInView >= WeeksInView - 1 ) ? WeeksInView - 1 : PreviousWeeksInView ;   args.startOfWeek=Offset;   args.weeksInView=WeeksInView;   args.prevWeeksInView=PreviousWeeksInView;   window.openDialog("chrome://calendar/content/printDialog.xul","printdialog","chrome",args);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/cf0ad6df47797d0568a4fda1d26c23c1693c092e/calendar.js/buggy/calendar/resources/content/calendar.js