Program name of Panel other than panel 1

Hi

how do I get the name of the program for a panel other than panel1

var _toolbarform =forms[globals.nav_currentPanel1Form].getToolbarFormName()
gives theformname of panel 1
from which I can get the program name via
forms[_toolbarForm].vProgram

but I cant seem to get the program name of panel 2 3 etc

any ideas?

I w2ould also like to get the actual form name of panel 2,3 etc

Take a look at svy_nav_getVisiblePanelNames, that will give you all the visible tabpanel names