I’ve just been playing with javascript changing the style of an item directly as part of my prep for an AJAX integrated project. Making sure the code is cross browser is really important so I pulled together some bits and pieces from all over the place and have put together a test page with tabbed forms and a style changer.
The key elements are the ability to get the element using any of the browser types.