rem: args=window.arguments[0]; eventSource=args.eventSource; selectedEvents=args.selectedEvents; selectedDate=args.selectedDate; gStartDate=selectedDate; weeksInView=args.weeksInView; prevWeeksInView=args.prevWeeksInView; startOfWeek=args.startOfWeek;  
add: gArgs = window.arguments[0]; gStartDate = gArgs.selectedDate ; gSelectedEvents = gArgs.selectedEvents ; 
context: function loadCalendarPrintDialog(){   // load up the sent arguments.   args=window.arguments[0];   eventSource=args.eventSource;   selectedEvents=args.selectedEvents;   selectedDate=args.selectedDate;   gStartDate=selectedDate;   weeksInView=args.weeksInView;   prevWeeksInView=args.prevWeeksInView;   startOfWeek=args.startOfWeek;   // set the date to the currently selected date   document.getElementById( "start-date-picker" ).value = selectedDate;   /* Categories stuff */   // Load categories/****   var categoriesString = opener.GetUnicharPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "categories.names", getDefaultCategories() );   var categoriesList = categoriesString.split( "," );   // categoriesList.sort();   var oldMenulist = document.getElementById( "categories-menulist-menupopup" );   while( oldMenulist.hasChildNodes() )      oldMenulist.removeChild( oldMenulist.lastChild );   document.getElementById( "categories-field" ).appendItem("All", "All");   for (i = 0; i < categoriesList.length ; i++)   {      document.getElementById( "categories-field" ).appendItem(categoriesList[i], categoriesList[i]);   }   document.getElementById( "categories-field" ).selectedIndex = 0;**/   // start focus on title   var firstFocus = document.getElementById( "title-field" );   firstFocus.focus();   opener.setCursor( "default" );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d8db7f33bb594a1f6809f362841e02f4e9bc30e6/printDialog.js/clean/calendar/resources/content/printDialog.js