rem: document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) ); 
add: if( ( CheckEndTime && CheckRecurTime ) === false ) document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", true ); else document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).removeAttribute( "disabled" ); 
context: function updateOKButton(){   var CheckEndTime = checkEndTime();   var CheckRecurTime = checkRecurTime();      document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d2c9282cff76dafbda8356feac0cdc3dc0de1dd/eventDialog.js/clean/calendar/resources/content/eventDialog.js