if (!allDay) {  var startDate = jsDateToDateTime(getElementValue("event-starttime")); var endDate = jsDateToDateTime(getElementValue("event-endtime")); if (startDate.compare(endDate) == 0) { endDate.minute += getPrefSafe("calendar.event.defaultlength", 60); endDate.normalize(); setElementValue("event-endtime", endDate.jsDate); } }  
function updateAllDay(){    if (!isEvent(window.calendarItem))        return;    var allDay = getElementValue("event-all-day", "checked");    setElementValue("event-starttime", allDay, "timepickerdisabled");    setElementValue("event-endtime", allDay, "timepickerdisabled");    updateAccept();}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/03206c94b45014ca56a1e422033381dd0a925f31/calendar-event-dialog.js/buggy/calendar/base/content/calendar-event-dialog.js