currentView is in use. For example, SS bond Cys are not labeled by makeLabelSSBondsSpt() unless match(currentView, "makessbondsspt"). helpPanel contains the name of the current help function, e.g. "makeLabelSeqNumResNamHelp()" To query helpPanel, e.g.: match(helpPanel, "seqNumResNam") cptab is a local variable within makeToggleButton(), not an external. Generally there is no need to know which Tab is active since changes to buttons and checkboxes need to be done in all tabs. [currentHelp is defined but never used (always blank).]