var oldId = 0;
var active;

function showSub( id ) {
  if( oldId != id ) hideSub(oldId);
  $( id ).setStyle({ visibility: 'visible' });
  oldId = id;
}

function hideSub( id ) {
  if( active == 0 ) {
    if( id == 0 ) id = oldId;
    oldId = 0;
    if( id != 0 ) $( id ).setStyle({ visibility: 'hidden' });
  }
}

function resetAct() {
  active = 0;
}

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