rem: if (dateComparison < 0 || (dateComparison == 0 && getElementValue("all-day-event-checkbox", "checked") ) ) {  setDateError(true); setTimeError(false); return false; } else if (dateComparison == 0) { setDateError(false);  var isBadEndTime = endDate.getTime() < startDate.getTime(); setTimeError(isBadEndTime); return !isBadEndTime; } else { setDateError(false); setTimeError(false); return true; } 
add: if (dateComparison < 0) {  setDateError(true); setTimeError(false); return false; } else if (dateComparison == 0) {  setDateError(false);  var isAllDay = getElementValue("all-day-event-checkbox", "checked"); var isBadEndTime = (!isAllDay && (endDate.getTime() < startDate.getTime())); setTimeError(isBadEndTime); return !isBadEndTime; } else {  setDateError(false); setTimeError(false); return true; } 
context: function checkSetTimeDate(){   var startDate      = getElementValue("start-datetime");   var endDate        = getElementValue("end-datetime");   var dateComparison = compareIgnoringTimeOfDay(endDate, startDate);   if (dateComparison < 0 || (dateComparison == 0 &&       getElementValue("all-day-event-checkbox", "checked") ) )   {      // end before start, or all day event and end date is not exclusive.      setDateError(true);      setTimeError(false);      return false;   } else if (dateComparison == 0) {      setDateError(false);      // start & end date same, so compare entire time (ms since 1970)      var isBadEndTime = endDate.getTime() < startDate.getTime();      setTimeError(isBadEndTime);      return !isBadEndTime;   } else {      setDateError(false);      setTimeError(false);      return true;   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7075e99771d972168cfa49e5957fa9dd184fc8a3/eventDialog.js/clean/calendar/resources/content/eventDialog.js