if (failedCount) { var msg = calGetString("calendar", "importItemsFailed", [failedCount, lastError.toString()]); showError(msg); 
if (!failedCount && duplicateCount) { showError(calGetString("calendar", "duplicateError", [duplicateCount, aFilePath] , 2)); } else if (failedCount) { showError(calGetString("calendar", "importItemsFailed", [failedCount, lastError.toString()] , 2)); 
        onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) {            count++;            if (!Components.isSuccessCode(aStatus)) {                failedCount++;                lastError = aStatus;            }            // See if it is time to end the calendar's batch.            if (count == aItems.length) {                destCal.endBatch();                if (failedCount) {                    var msg = calGetString("calendar", "importItemsFailed",                                           [failedCount, lastError.toString()]);                    showError(msg);                }            }        }
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/9a4a610f46e352dc9f61d73f19ec14fa438d1452/import-export.js/clean/calendar/base/content/import-export.js