// popup - aufruf, groesse, position, focus 

var subpage=null;
var focuscnt=0;

function popup(url, breite, hoehe) 
  {
  	links = (screen.width/2)-(breite/2);
  	oben = (screen.height/2)-(hoehe/2);
   	subpage = window.open(url,"content","height="+hoehe+",width="+breite+",top="+oben+",left="+links+",scrollbars=no,resizable=no");
  	if(!document.layers)
  	window.setTimeout('popupfocus(0)',500); 
  } 

function popupfocus()
  {
    focuscnt++;	
    if (subpage)
      subpage.focus();
    else 
      if(focuscnt<3)
        window.setTimeout("popupfocus(0)",500); 
  }

function printpopup()
  {
  	window.print();
  }
