add: if (getElementValue("todo-has-entrydate", "checked") && getElementValue("todo-has-duedate", "checked")) { var start = jsDateToDateTime(getElementValue("todo-entrydate")); var end = jsDateToDateTime(getElementValue("todo-duedate")); gItemDuration = end.subtractDate(start); } else { gItemDuration = null; }  
context: function updateEntryDate(){    if (!isToDo(window.calendarItem))        return;    // force something to get set if there was nothing there before    setElementValue("todo-entrydate", getElementValue("todo-entrydate"));    setElementValue("todo-entrydate", !getElementValue("todo-has-entrydate", "checked"), "disabled");    updateAccept();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c5be355a08d10f038aa8feed3a0c384f546f6394/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js