rem:  /* Categories stuff */    /**** var categoriesString = opener.GetUnicharPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "categories.names", getDefaultCategories() ); var categoriesList = categoriesString.split( "," );     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; **/ 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/345f8db03484ebac4fc37c59ac67da75151c5b5e/printDialog.js/clean/calendar/resources/content/printDialog.js