rem: self.focus(); 
add: document.getElementById("item-title").focus(); document.getElementById("item-title").select(); 
context: function onLoad(){  var args = window.arguments[0];  window.onAcceptCallback = args.onOk;  window.calendarItem = args.calendarEvent;  window.accept = [ true,true ];  document.getElementById("sun-calendar-event-dialog").getButton("accept").setAttribute("collapsed","true");  document.getElementById("sun-calendar-event-dialog").getButton("cancel").setAttribute("collapsed","true");  document.getElementById("sun-calendar-event-dialog").getButton("cancel").parentNode.setAttribute("collapsed","true");  // the different tabpages occasionally send an 'accept'-event  // to indicate whether or not the accept-button should be  // enabled or disabled. this is the handler that involves  // the necessary steps in order to reflect the new state.  var accept = function acceptHandler(event) {      // the bool indicating the new state is expected to be stored in 'event.details'    window.accept[event.tab] = event.details;    var enableAccept = true;    for each(var accept in window.accept) {      if (!accept)        enableAccept = false;    }        // we need to modify the accept-button, get the reference to the button    var acceptButton = document.getElementById("button-save");        // set or remove the 'disabled' attribute depending on the requested state.    if (!enableAccept) {      acceptButton.setAttribute("disabled", "true");    } else if (acceptButton.getAttribute("disabled")) {      acceptButton.removeAttribute("disabled");    }  };    // attach the above defined handler to the 'accept'-event.  window.addEventListener('accept', accept, true);  var warning = function warningHandler(event) {    var statusbarPanel = document.getElementById("statusbarpanel");    if(event.details) {      statusbarPanel.setAttribute("label",event.details);    } else {      statusbarPanel.removeAttribute("label");    }  };  window.addEventListener('warning', warning, true);  var calendar = function calendarHandler(event) {    var recurrencepage = document.getElementById("recurrence-page");    recurrencepage.onChangeCalendar(event.details);    var attendeespage = document.getElementById("attendees-page");    attendeespage.onChangeCalendar(event.details);  };  window.addEventListener('calendar', calendar, true);  // figure out what the title of the dialog should be and set it  updateTitle();  if (isToDo(window.calendarItem))    document.getElementById("attendees-tab").setAttribute("collapsed","true");  opener.setCursor("auto");  self.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c78b2e15e04d4a1764ad73cc3f8de62e66cd0c88/sun-calendar-event-dialog.js/clean/calendar/prototypes/wcap/sun-calendar-event-dialog.js