An easy method, if you can afford a server round-trip, is to do it on the server via
JSP, php, or whatever else you like.
If you want to stay client-side, you could load up all of the poosibilites, each in their own div, and show/hide the div's as appropriate using the
display CSS property.
hth,
bear