SetStyleByID function
6
This function will set the style of an element by it's ID
function setStyleById(objId, objProperty, objValue) {
// This function will apply a style to an Element based on Id
// Works with IE and Mozilla based browsers
var element = (ie) ? document.all(objId) : document.getElementById(objId);
element.style[objProperty] = objValue
}






var element = document.getElementById(objId);
Now it works in everything I tested, FF2, Opera 9, IE7, IE6, IE 5.5.