var oldId = 0;
var active;

function showSub (id)
{
  
  if (oldId != id) hideSub (oldId);
  document.getElementById(id).style.visibility = 'visible';    
  oldId = id;
}

function hideSub (id)
{
	if(active == 0){
	  if (id == 0) id = oldId;
	  oldId = 0;
	  if (id != 0) document.getElementById(id).style.visibility = 'hidden';
	}  
}

function resetAct (){
  active = 0;
}

function reload_captcha(){
	img = document.getElementById('captcha_bild');
	src = "/netactive/formmailer.php?captcha=png&"+Math.round(Math.random()*10000);
	img.src = src;
}
