function ntabs(thisobj, num) { if(thisobj.classname == "active") return; var tabobj = thisobj.parentnode.id; var tablist = document.getelementbyid(tabobj).getelementsbytagname("li"); for(i = 0; i < tablist.length; i++) { if(i == num) { thisobj.classname = "active"; document.getelementbyid(tabobj + "_content" + i).style.display = "block"; } else { tablist[i].classname = "normal"; document.getelementbyid(tabobj + "_content" + i).style.display = "none"; } } }