add:  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;   var Now = new Date();   //change the end date of recurring events to today, if the new date is after today and repeat is not checked.   if ( datepopup.value > Now && !getFieldValue( "repeat-checkbox", "checked" ) )    {      document.getElementById( "repeat-end-date-text" ).value = formatDate( datepopup.value );      document.getElementById( "repeat-end-date-text" ).editDate = datepopup.value;   }   updateAdvancedWeekRepeat();         updateAdvancedRepeatDayOfMonth();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/59a2097a55b4bc6af9e46f08c9ac7f61acf76ab3/eventDialog.js/clean/calendar/resources/content/eventDialog.js