function toggle_tabs(id)
{
	var i=-1
	Anchors = document.getElementsByTagName("a");
	while( Anchor=Anchors[++i] ) 
  {
		if (Anchor.className == 'active')
		{
			Anchor.className = '';
		} 
  }
  // now that everything is no longer active lets make the
  // one we want active
  document.getElementById('tab_' + id).className = 'active';
}