grossd
if your interested, an easy way to do the function
on function "toggleGroup"
repeat function.paramCount times > system: set group function.Param(loopindex) Toggle Active
this way it will use every parameter (the groups in this case) and toggle them