Alright, here's another one for you guys.

I have a style property, like "backgroundColor", or "width" stashed in a variable called styleName. Now, I need to dynamically set that property's value for a particular page element, like so:

document.getElementById("whateverElementId").style.styleName ="whatever";

The drawback is, well, it doesn't work. ;-)

Any suggestions?