function setTab(num) { if (num == 1) { document.getElementById('tab1').className = "on"; document.getElementById('tab2').className = "off"; document.getElementById('tabdiv2').style.display = "none"; document.getElementById('tabdiv1').style.display = "block"; } if (num == 2) { document.getElementById('tab1').className = "off"; document.getElementById('tab2').className = "on"; document.getElementById('tabdiv1').style.display = "none"; document.getElementById('tabdiv2').style.display = "block"; } }