If you create an ajax event then you cannot use the predefined script for hiding and showing a block, only for fields. I added an event on a field to show and hide a block depending on a radiobutton. This works well, so I guess that the red spot of the macro should be green.
By the way, it’s odd that i need to create a yesno table to be able to let a block depend on the status of a yes/no field. But I have added an enhancement request on this.