rem: var DueDate = getDateTimeFieldValue( "due-date-text" );  
add: var dueDate = document.getElementById( "due-date-picker" ).value;  
context: function checkStartAndDueDates(){   var StartDate = getDateTimeFieldValue( "start-date-text" );   var DueDate = getDateTimeFieldValue( "due-date-text" );   if( DueDate.getTime() < StartDate.getTime() )   {      //show alert message, disable OK button      document.getElementById( "start-date-warning" ).removeAttribute( "collapsed" );      document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).setAttribute( "disabled", true );   }   else   {      //enable OK button            document.getElementById( "start-date-warning" ).setAttribute( "collapsed", true );            document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).removeAttribute( "disabled" );   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendarToDoDialog.js/clean/calendar/resources/content/calendarToDoDialog.js