var exit=true;
var abbr=true;

function setLinks() {
  for ( i=0; i < document.links.length; i++ ) {
    url = self.document.links[i].href;
    if ( url.indexOf('javascript:') == 0 ) {
      self.document.links[i].href = url.replace(/javascript:/,'javascript:exit=false;');
    } else if ( url.indexOf('mailto:') == 0 ) {
      /* do nothing */
    } else {
      self.document.links[i].href = "javascript:exit=false;window.location.href='" + url + "'";
    }
  }
}

function bye() {
  if (typeof(windowprops) == "undefined" )    
  windowprops = "width=510,height=671,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";
  if (typeof(followUrl) == "undefined" )
    followUrl ='http://www.fundorado.de/allgemeines/service/follow_pop_ups/stopp_follow_pop_under/index.html';   
   //followUrl = 'http://www.sadorado.com/follow_page/index.html?ppid=z40002002'
  if (exit){
    followPopup = window.open(followUrl,'followPopup',windowprops);
    //followPopup.focus();
    window.focus();
  }
}

function follow() {
  if (exit){         
    openWin(followUrl,'','');
  }
}



function popup() {
  // wenn exit == true und Seite == Anmeldung , popup zeigen
  // onsubmit wird exit auf false gesetzt
  if (exit && document.getElementsByName("fl_popup").length > 0) {
     openWin('http://www.fundorado.de/allgemeines/service/verzeichnis_popups/popup_first_login/index.html','_hilfe','width=600,height=540,screenX=0,screenY=0,status=no,menubar=no,tar=no,scrollbars=no,resizable=no');
     abbr=false;	
  }
  if(exit && abbr)
  {
    openAbbruchPopUp();
  }
} 

function aendern(x) {
 location.href = x;
 self.focus();
}

