// JavaScript Document
function showTab(id) {
	i = 1;
	while(tab	=	document.getElementById("tab_" + i) ) {
		content	=	document.getElementById("tabcontent_" + i);
		
		tab.className			=	(i == id ? "active" : "inactive");
		content.className		=	(i == id ? "tabcontent_visible" : "tabcontent_hidden");
		i++;
	}
}

// Allow drop-down lists to expose tabs by R. Taylor 2007
function getIndexedTab(id) {	
  var x=document.getElementById(id);
  var position = x.selectedIndex + 1;
  // alert("tab_" + position);
  showTab(position);
 }
 