var fenste; function mywin(anzeige,file,uebname,uebwidth,uebheight,uebmenu,uebscroll,uebpos){
if(browserOK){var infomerker=false;showit=anzeige;if(showit){if(!fenste||fenste.closed){
if(ret_client()==1){fenste=open(file,uebname,"innerwidth="+uebwidth+",innerheight="+uebheight+",location=no,menubar="+uebmenu+",toolbar=no,status=no,resizable=yes,scrollbars="+uebscroll+"");} 
else{fenste=open(file,uebname,"width="+uebwidth+",height="+uebheight+",location=no,menubar="+uebmenu+",toolbar=no,status=no,resizable=no,scrollbars="+uebscroll+"");}
}else{fenste.close();
if (ret_client()==1){fenste=open(file,uebname,"innerwidth="+uebwidth+",innerheight="+uebheight+",location=no,menubar="+uebmenu+",toolbar=no,status=no,resizable=yes,scrollbars="+uebscroll+"");}
else {fenste=open(file,uebname,"width="+uebwidth+",height="+uebheight+",location=no,menubar="+uebmenu+",toolbar=no,status=no,resizable=no,scrollbars="+uebscroll+"");}
} if((ret_client()==1)&&(ret_bversion>=5)&&(uebscroll="no")) {fenste.scrollbars=false;}
if (uebpos==-1){if((ret_client()==1)||(ret_client()==2)){
if (ret_client()==1){uebpos=(screen.width/2)-(fenste.outerWidth/2);}
if (ret_client()==2){uebpos=(top.innerWidth/2)-(fenste.outerWidth/2);}
} else {uebpos=uebpos=(screen.width/2)-((uebwidth/2)+6);}}
if(ret_bversion()>=4){infomerker=true;}
if(file.indexOf("http://")!=-1){if(file.indexOf(document.location.host)==-1){infomerker=false;}}
if(infomerker){if((ret_client()==1)||(ret_client()==2)){if(ret_client()==1){
if((fenste.innerWidth!=uebwidth)||(fenste.innerHeight!=uebheight)){fenste.innerWidth=uebwidth;fenste.innerHeight=uebheight;}
fenste.moveTo(uebpos,(screen.height/2)-(fenste.outerHeight/2));}
if(ret_client()==2){fenste.moveTo(uebpos,(top.innerHeight/2)-(fenste.outerHeight/2));}
}else{fenste.moveTo(uebpos,(screen.height/2)-(uebheight/2));}} 
fenste.name=uebname; if (infomerker) {fenste.focus();}}}}