rem: var printFunction; var printFunctionArg = gStartDate ; 
add: var ccalendar = getDisplayComposite(); var listener = { mEventArray: new Array(), 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/cf0ad6df47797d0568a4fda1d26c23c1693c092e/printDialog.js/buggy/calendar/resources/content/printDialog.js