I take that back. You can change many of the style attributes at one time. By changing the class of the element.
So you have a 2 css styles for a textbox. Whenever you want to change the styles, just change the class name instead.
document.getElementById(objId).className = className;
objId would be the ID of the element you want to change the style of.
className is the name of the class you want to change the element to.