такой код
function cb1(){
document.getElementById("s1").style.display = "none";
document.getElementById("s2").style.display = "block";
document.getElementById('ChangeBox1').style.cssText = 'background: #FF6600; color: #FFFFFF';
document.getElementById('ChangeBox2').style.cssText = 'background: #FFFFFF; color: #FF6600';
}
function cb2(){
document.getElementById("s2").style.display = "none";
document.getElementById("s1").style.display = "block";
document.getElementById('ChangeBox2').style.cssText = 'background: #FF6600; color: #FFFFFF';
document.getElementById('ChangeBox1').style.cssText = 'background: #FFFFFF; color: #FF6600';
}
можно ли его записать как то проще?