What is the best way to implement an "open all" or a "close all" button? I am using a number of field groups as collapsible fieldsets. Everything works fine and the user can un-/collapse all fields individually. However, it would be nice to be able to offer a convenient way to open up or close all groups at the same time. Could anyone point me into the right direction to get this done?

Thanks, J.