rem: var StartDate = document.getElementById( "start-date-picker" ).value; 
add: var startDate = document.getElementById( "start-datetime" ).value; 
context: function checkStartAndDueDates(){   var StartDate = document.getElementById( "start-date-picker" ).value;   var dueDate = document.getElementById( "due-date-picker" ).value;         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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/ad0f266172dd7cb61d69f9a042d490c6938ac694/toDoDialog.js/clean/calendar/resources/content/toDoDialog.js