rem: var CheckEndTime = checkEndTime();  var CheckRecurTime = checkRecurTime();  if( ( CheckEndTime && CheckRecurTime ) === false ) document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", true ); else document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).removeAttribute( "disabled" ); 
add: var checkRecur = checkSetRecurTime(); var checkTimeDate = checkSetTimeDate(); setOkButton(checkRecur && checkTimeDate); this.sizeToContent(); 
context: function updateOKButton(){   var CheckEndTime = checkEndTime();   var CheckRecurTime = checkRecurTime();      if( ( CheckEndTime && CheckRecurTime ) === false )      document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", true );   else      document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).removeAttribute( "disabled" );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9bd5b4e5a5bf1fd0168b427b5845fcae11a8f9b8/eventDialog.js/buggy/calendar/resources/content/eventDialog.js