function openEventDialog(calendarItem, calendar, mode, callback) 
function openEventDialog(calendarItem, calendar, mode, callback, job) 
function openEventDialog(calendarItem, calendar, mode, callback){    var args = new Object();    args.calendarEvent = calendarItem;    args.calendar = calendar;    args.mode = mode;    args.onOk = callback;    // the dialog will reset this to auto when it is done loading.    window.setCursor("wait");    // open the dialog modally    if (getPrefSafe("calendar.prototypes.wcap", false)) {      openDialog("chrome://calendar/content/sun-calendar-event-dialog.xul", "_blank",                 "chrome,titlebar,modal,resizable", args);    } else {      openDialog("chrome://calendar/content/calendar-event-dialog.xul", "_blank",                 "chrome,titlebar,modal,resizable", args);    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/8a8fb1e50f1a74dbb1713b031761c84e92fa5b69/calendar-item-editing.js/buggy/calendar/base/content/calendar-item-editing.js