args.promptText = getCalStringBundle().GetStringFromName("exportPrompt"); 
args.promptText = calGetString("calendar", "exportPrompt"); 
function exportEntireCalendar(aCalendar) {    var itemArray = [];    var getListener = {        onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)        {            saveEventsToFile(itemArray, aCalendar.name);        },        onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems)        {            for each (item in aItems) {                itemArray.push(item);               }        }    };    function getItemsFromCal(aCal) {        aCal.getItems(Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS,                      0, null, null, getListener);    }    if (!aCalendar) {        var count = new Object();        var calendars = getCalendarManager().getCalendars(count);        if (count.value == 1) {            // There's only one calendar, so it's silly to ask what calendar            // the user wants to import into.            getItemsFromCal(calendars[0]);        } else {            // Ask what calendar to import into            var args = new Object();            args.onOk = getItemsFromCal;            args.promptText = getCalStringBundle().GetStringFromName("exportPrompt");            openDialog("chrome://calendar/content/chooseCalendarDialog.xul",                        "_blank", "chrome,titlebar,modal,resizable", args);        }    } else {        getItemsFromCal(aCalendar);    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/89dd51a153f57c2abc01787b4781afb3fc7a572d/import-export.js/buggy/calendar/base/content/import-export.js