enumFormNames(openForms)
if openForms.size() = 1 then
message("Closing toolbar, no forms open!")
sleep(200)
close()
else
if openForms[1] = "mymenubar" then
callingForm.attach(openForms[2])
callingForm.bringToTop()
else
callingForm.attach(openForms[1])
endif
endif