rem: updateEndDateDisplay(); 
add: document.getElementById( "end-date-picker" ).value = gEndDate;  setTimeFieldValue( "end-time-text", gEndDate ); 
context: function onTimePick( timepopup ){   var ThisDate = timepopup.value;   if( timepopup.timeField.id == "end-time-text" )   {      gEvent.end.hour = ThisDate.getHours();      gEvent.end.minute = ThisDate.getMinutes();      //if we are changing the end time, change the global duration.      gTimeDifference = gEvent.end.getTime() - gEvent.start.getTime(); //the time difference in ms            if ( gTimeDifference < 0 )       {         gTimeDifference = 0;      }   }   if( timepopup.timeField.id == "start-time-text" )   {      gEvent.start.hour = ThisDate.getHours();      gEvent.start.minute = ThisDate.getMinutes();      //get the new end time by adding on the time difference to the start time.      newEndDate = gEvent.start.getTime() + gTimeDifference;      gEvent.end.setTime( newEndDate );            updateEndDateDisplay();   }   // display the new time in the textbox   timepopup.timeField.value = formatTime( timepopup.value );      // remember the new date in a property, "editDate".  we created on the time textbox   timepopup.timeField.editDate = timepopup.value;   updateOKButton();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/81465269b916e59f9253fa1c7ef70fa347af6264/eventDialog.js/buggy/calendar/resources/content/eventDialog.js