A better way of button organization

We're using a form which has many invoke buttons. So far so good, but we don't know how to organize the bar with all these buttons. How can we arrange buttons and add some leveling like the windows toolbar or the buttons in firefox. We need to add some separator and a new line with or own arrangement.
1 answers

The easiest sollution I can think off, is to open a (modal) pop-up form (selection/context based) and create a nice orderly set-up there using "normal" table based layout options.

That would even allow you to use stuff like subtabeling to set up conditional usability