 self.focus(); 
function onLoad(){    var args = window.arguments[0];    window.onAcceptCallback = args.onOk;    window.calendarItem = args.calendarEvent;    window.originalItem = args.calendarEvent;    window.mode = args.mode;    window.recurrenceInfo = null;    // the calling entity provides us with an object that is responsible    // for recording details about the initiated modification. the 'finalize'-property    // is our hook in order to receive a notification in case the operation needs    // to be terminated prematurely. this function will be called if the calling    // entity needs to immediately terminate the pending modification. in this    // case we serialize the item and close the window.    if (args.job) {        // keep this context...        var self = this;        // store the 'finalize'-functor in the provided job-object.        args.job.finalize = function finalize() {            // store any pending modifications...            self.onAccept();            var item = window.calendarItem;            // ...and close the window.            window.close();            return item;        }    }    if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) {        gReadOnlyMode = true;    }    /* add calendars to the calendar menulist */    var calendarList = document.getElementById("item-calendar");    var calendars = getCalendarManager().getCalendars({});    for (i in calendars) {        var calendar = calendars[i];        var menuitem = calendarList.appendItem(calendar.name, i);        menuitem.calendar = calendar;    }    loadDialog(window.calendarItem);    // figure out what the title of the dialog should be and set it    updateTitle();    // hide rows based on if this is an event or todo    updateStyle();    // update the accept button    updateAccept();    // update datetime pickers    updateDueDate();    updateEntryDate();    // update datetime pickers    updateAllDay();    // update recurrence button    updateRecurrence();    // update our size!    window.sizeToContent();    document.getElementById("item-title").focus();    opener.setCursor("auto");    self.focus();}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/450988d5192a7f82e565731e8c8f4028e6007932/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js