new_Window = null;

function bogx_URLOpen(theURL,x,y)
{
//   w = 350;
//   h = 417;
//   w = parseInt(screen.width*0.4);
//   h = parseInt(screen.height*04);
   var str = theURL;
   w = x;
   h = y;
   bogx_WindowClose();
   bogx_WindowOpen(str);
   //setTimeout("bix_WindowOpen(str)",1);
}
	

//Ansicht-Fenster auf jeden Fall schliessen, wenn noch offen
function bogx_WindowClose()
{
   if (new_Window != null)
     if (!new_Window.closed)
       new_Window.close();
}


function bogx_WindowOpen(strURL)
{
   var theURL = strURL
   //var win_left = parseInt((screen.width-w)*0.5);
   //var win_top = parseInt((screen.height-h)*0.5);
 //  var win_left = screen.width-w-15;
   var win_left = 0;
   var win_top = 0;

   var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,left='+win_left+',top='+win_top+',height='+h+',width='+w;
   new_Window = window.open(theURL,'open',features)

}

function bix_StartOpenerUrl(strURL)
{
  if (opener != null)
    opener.location = strURL;
  else
  {
   // alert ("hier bin ich");
    window.open(strURL,"NeuesFenster");
  }

}

function bix_OpenerZu ()
{
  new_Window.opener = null;
}
