rem: checkStartAndDueDates(); 
add: if( datepicker.id == "due-date-picker" ) { gDueDate.setMonth( ThisDate.getMonth() ); gDueDate.setDate( ThisDate.getDate() ); gDueDate.setFullYear( ThisDate.getFullYear() );   gDateDifference = gDueDate.getTime() - gStartDate.getTime();  updateOKButton(); return; }  if( datepicker.id == "start-date-picker" ) { gStartDate.setMonth( ThisDate.getMonth() ); gStartDate.setDate( ThisDate.getDate() ); gStartDate.setFullYear( ThisDate.getFullYear() );   gDueDate.setTime( gStartDate.getTime() + gDateDifference );  document.getElementById( "due-date-picker" ).value = gDueDate;  setTimeFieldValue( "due-time-text", gDueDate ); }  var Now = new Date();    if ( datepicker.value.getTime() > Now.getTime() && !getFieldValue( "repeat-checkbox", "checked" ) ) { document.getElementById( "repeat-end-date-picker" ).value = datepicker.value; } updateAdvancedWeekRepeat();  updateAdvancedRepeatDayOfMonth();  updateAddExceptionButton();  updateOKButton(); 
context: function onDatePick( datepopup ){   // display the new date in the textbox      datepopup.dateField.value = formatDate( datepopup.value );      // remember the new date in a property, "editDate".  we created on the date textbox      datepopup.dateField.editDate = datepopup.value;   checkStartAndDueDates();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/d801d14a6bdaf22b7c6518182ed10af2b2d4226e/toDoDialog.js/clean/calendar/resources/content/toDoDialog.js