﻿var fenster_kontakt=null;
var fenster_impressum=null;
var fenster_disclaimer=null;
var fenster_login=null;
var fenster_spieler=null;
var fenster_tauschboerse=null;
var fenster_anfahrt=null;
var fenster_antwort=null;

function popup_kontakt(url,windowname,b,h)
  {
          if (fenster_kontakt && !fenster_kontakt.closed) {
                  fenster_kontakt.focus();
          } else {
                   fenster_kontakt=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
function popup_impressum(url,windowname,b,h)
  {
          if (fenster_impressum && !fenster_impressum.closed) {
                  fenster_impressum.focus();
          } else {
                   fenster_impressum=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
  
function popup_disclaimer(url,windowname,b,h)
  {
          if (fenster_disclaimer && !fenster_disclaimer.closed) {
                  fenster_disclaimer.focus();
          } else {
                   fenster_disclaimer=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
  
function popup_login(url,windowname,b,h)
  {
          if (fenster_login && !fenster_login.closed) {
                  fenster_login.focus();
          } else {
                   fenster_login=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
 
function popup_spieler(url,windowname,b,h)
  {
          if (fenster_spieler && !fenster_spieler.closed) {
                  fenster_spieler.focus();
          } else {
                   fenster_spieler=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
  
function popup_tauschboerse(url,windowname,b,h)
  {
          if (fenster_tauschboerse && !fenster_tauschboerse.closed) {
                  fenster_tauschboerse.focus();
          } else {
                   fenster_tauschboerse=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
  
function popup_anfahrt(url,windowname,b,h)
  {
          if (fenster_anfahrt && !fenster_anfahrt.closed) {
                  fenster_anfahrt.focus();
          } else {
                   fenster_anfahrt=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
  
function popup_antwort(url,windowname,b,h)
  {
          if (fenster_antwort && !fenster_antwort.closed) {
                  fenster_antwort.focus();
          } else {
                   fenster_antwort=window.open(url,windowname,'left='+(screen.width-b)/2+',top='+(screen.height-h)/2+',width='+b+',height='+h+',scrollbars=yes');
          }
  }
