function quartettstar_popup(gameid){
var w = 550;
var h = 560;
  var fenster = window.open("http://www.quartettstar.de/game/quartettstar_intro.php?gameid="+gameid, "Information", "width="+w+",height="+h+",hotkeys=no,dependent=yes,toolbar=0,location=0,directories=0,scrollbars=0,scrollbars=no,status=0,menubar=0,resizable=0")
  if (fenster.opener==null)
  {
    fenster.opener = self
  }
  fenster.focus();
  fenster.moveTo(screen.width/2-395,screen.height/2-280);
}

//****************************************************************************************
//Duellart:
function intro_duell(){
var id1 = 'duell_computer_live';
var id2 = 'duell_spieler_remote';

if(selectWert(document.introform.duell) == "computer_live") 
 {	
 	document.getElementById(id1).style.display = 'inline';
	document.getElementById(id2).style.display = 'none';
 }
 
if(selectWert(document.introform.duell) == "spieler_remote") 
 {
 	document.getElementById(id1).style.display = 'none';
	document.getElementById(id2).style.display = 'inline';
  }
  
if(selectWert(document.introform.duell) == "0") 
 {
 	document.getElementById(id1).style.display = 'none';
	document.getElementById(id2).style.display = 'none';
  }

}

//****************************************************************************************

//EINBLENDUNG DER ERROR-BOX:
function exchangeDisplay(id){
  document.getElementById(id).style.display = 'none';
}

//****************************************************************************************
//FERNDUELL: Oeffnen des PopUps bei einer Einladung
function quartettstar_remote_2_popup(hash,status){
var w = 550;
var h = 560;
  var fenster = window.open("quartettstar_spieler_remote_2.php?hash="+hash+"&st=intro", "Information", "width="+w+",height="+h+",hotkeys=no,dependent=yes,toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,resizable=0")
  if (fenster.opener==null)
  {
    fenster.opener = self
  }
  fenster.focus();
  fenster.moveTo(screen.width/2-395,screen.height/2-280);
}

//****************************************************************************************
//FERNDUELL: Oeffnen des PopUps bei dem Vergleich
function quartettstar_remote_finish_popup(hash,status){
var w = 550;
var h = 560;
  var fenster = window.open("quartettstar_spieler_remote_finish.php?hash="+hash, "Information", "width="+w+",height="+h+",hotkeys=no,dependent=yes,toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,resizable=0")
  if (fenster.opener==null)
  {
    fenster.opener = self
  }
  fenster.focus();
  fenster.moveTo(screen.width/2-395,screen.height/2-280);
}

//****************************************************************************************
//Anzeige der Beschreibung der Karte
function ShowBeschreibung(id){
if(document.getElementById(id).style.display == 'none')
{
document.getElementById(id).style.display = 'block';
}
else
{
document.getElementById(id).style.display = 'none';
}
}	

//****************************************************************************************
//Link auf DIV
function DoJump(url){
opener.location.href = url;
}

//****************************************************************************************
//auslesen von SELECT-Feldern
function selectWert(sObj) {
    with (sObj) return options[selectedIndex].value;
  }
//****************************************************************************************
