Doesn't sound so complicated. Wrap each subform in its own div container. Place all the div elements relative to each other on the "all" page in the ready () method and set each div to be visible. Then set the visibility of the sections, select the selected ones by clicking on the buttons / fields of the tab to hide them. Pressing "all" simply calls the same function that you use in your ready () method to lay out divs in the first instance.
You definitely don't need two copies of the fields (or they need to do some kind of copying between them). A.
However, there are many components of the javascript / jquery tab, I probably start with one of them and see, firstly, how someone else does it, and secondly, if you can adapt it.
Some tab plugins:
http://stilbuero.de/jquery/tabs/
http://docs.jquery.com/UI/Tabs
Setting the visibility of a div:
http://drupal.org/node/287259
http://waxtadpole.wordpress.com/2008/11/26/jquery-toggle-visibility-of-a-div/
flesh source share