How do you change the style/class on any element?

document.getElementById(“myText”).style.fontSize = “20″;

(OR) document.getElementById(“myText”).className = “anyclass”;