rem: var theView = window.opener.currentView(); 
context: function getDialogSettings(){    var settings = new Object();    var ccalendar = window.opener.getCompositeCalendar();    var listener = {        mEventArray: new Array(),        onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) {            settings.eventList = listener.mEventArray;            settings.start = start;            settings.end = end;        },        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;    var start;    var end;    var eventList;    switch (document.getElementById("view-field").selectedItem.value) {        var theView = window.opener.currentView();        case 'currentview':        case '': //just in case            start = theView.startDay;            end   = theView.endDay;            break;        case 'selected':            eventList = theView.getSelectedItems({});
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/6c51da9259d4c14492e1256f051cf1f4f34b7a36/printDialog.js/buggy/calendar/resources/content/printDialog.js