function open_wdw(pURL,ptitle,pwidth,pheight)
{  
  var wdw;
  wdw = open(pURL,ptitle,"width="+pwidth+",height="+pheight+",scrollbars=yes");
  if (wdw)
  {
    if (wdw.focus)
    {
      wdw.focus();
    }
  }
}

function chat_wdw(URL,winName,features)
{ 
  var chatWindow =  window.open(URL,winName,features);
  if (chatWindow)
  {
    if (chatWindow.focus)
    {
      chatWindow.focus();
    }
  }
}


function popup(url,optionen, popupName)
{
/*
 das hier fügt bei Bedarf (newWin als Parameter übergeben) dem Fensternamen 
 eine gerundete Randomzahl (ohne Punkt und Komma) zu, 
 um öffnen eines neuen Fensters zu erzwingen.
 die Funktion kann entweder direkt mit entsprechendem Optionen-String verwendet werden oder mit nem 
 "Shortcut", Beispielfunktion folgt.
*/
  if (popupName == "newWin") popupName =  popupName+Math.round( Math.pow( Math.random(), -10) );
  popupName = window.open(url,popupName,optionen);
  if (popupName)
  {
    if (popupName.focus)
    {
      popupName.focus();
    }
  }
  return false; // popupName evtl. noch durch false ersetzten.
}



function statusPopup(url, name) 
{
		popup(url,  'width=500,height=550,toolbar=0,menubar=0,resizable=1,scrollbars=1', name );
    return false;
}

function mycomPopup(url, name) 
{
		popup(url,  'width=500,height=550,toolbar=0,menubar=0,resizable=1,scrollbars=1', name );
    return false;
}
function onAirPopup(url, name) 
{
		popup(url,  'width=500,height=400,toolbar=0,menubar=0,resizable=1,scrollbars=0', name );
    return false;
}
function yourcomPopup(url, name) 
{
		popup(url,  'width=500,height=550,toolbar=0,menubar=0,resizable=1,scrollbars=1', name );
    return false;
}

function privateChatPopup(url, name) 
{
		popup(url,  'width=500,height=480,toolbar=0,menubar=0,resizable=0,scrollbars=1', name );
    return false;
}


function helpPopup(url, name) 
{
		popup(url, 'toolbar=no,location=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=yes,width=500,height=600', name );
    return false;
}

function miniPopup(url, name) 
{
		popup(url, 'toolbar=no,location=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=yes,width=210,height=140', name );
    return false;
}


function sudokuPopup(url, name)
{
    popup(url, 'toolbar=no,location=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=yes,width=400,height=500', name );
    return false;
}