rem: switch( caltype.value ) 
add: onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { printInitWindow(listener.mEventArray); },  onGetResult: function (aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { for (var i = 0; i < aCount; i++) { listener.mEventArray.push(aItems[i]); } } };  var filter = ccalendar.ITEM_FILTER_TYPE_EVENT | ccalendar.ITEM_FILTER_CLASS_OCCURRENCES;  switch( document.getElementById("view-field").value ) 
context: function printCalendar() {  var caltype=document.getElementById("view-field");  if (caltype.value == '')    caltype.value='month';  var printFunction;  var printFunctionArg = gStartDate ;  switch( caltype.value )  {    case 'month' :      printFunction = "printMonthView" ;      break ;    case 'list' :      printFunction = "printEventArray" ;      printFunctionArg = gSelectedEvents ;      break ;    case 'day' :      printFunction = "printDayView" ;      break ;    case 'week' :      printFunction = "printWeekView" ;      break ;    case 'multiweek' :      printFunction = "printMultiWeekView" ;      break ;    default :      alert("Error : no case in printDialog.js::printCalendar()");      return false ;  }  printInitWindow(printFunction,printFunctionArg)  return true ;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f91b5ca2b3b205a64ee669dc2154ac678f917f44/printDialog.js/clean/calendar/resources/content/printDialog.js