disabling menus

Hi,

is there any way to disable the menus of the editor in real time? what I mean is that , for example, I click a button and that button, via javascript, changes a property in the fckeditor object that disables the menus.