case "bold": document.getElementById("span2").style.className="bold"; document.getElementById("span2").style.className2="bold";