new_Window = null;

function bix_URLOpen(theURL)
{
   w = 492;
   h = 572;
//   w = parseInt(screen.width*0.4);
//   h = parseInt(screen.height*04);
   var str = theURL;
   bix_WindowClose();
   bix_WindowOpen(str);
   //setTimeout("bix_WindowOpen(str)",1);
}
	

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


function bix_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_top = 0;

   var features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,left='+win_left+',top='+win_top+',height='+h+',width='+w;
   new_Window = window.open(theURL,'view',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;
}
