function showEl(whichLayer)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
	elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
	  elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
	elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'block'; 
}
function hideEl(whichLayer)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
	elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
	  elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
	elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'none'; 
}

function editClass(whichLayer,newclass)
{
  if( document.getElementById ) // this is the way the standards work
	elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
	  elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
	elem = document.layers[whichLayer];
	elem.className = newclass; 	
}
	
	
function showtab(name)
{
	hideEl('verdiensten'); 
	hideEl('gegevens'); 
	//hideEl('logboek'); 
	
	editClass('li-verdiensten','');
	editClass('li-gegevens',''); 
	//editClass('li-logboek',''); 
	
	editClass('li-' + name,'active'); 
	
	showEl(name); 
	return false; 
}

