controls.js: setupControlPanelTabs()

--------------
How to change the active tab from javascript? Or re-write the tab contents?

These produced no error and no effect:
javascript document.location.href = "#tab2"
javascript  document.getElementById("controls2").focus()


This rewrites the contents of the pane but fails to focus that pane 
javascript document.getElementById("controls2").innerHTML = makeFGControl2();
Above was used in togglePreferenceTools()
