var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}

function singler(beammeup) {
document.form.text.value+= beammeup+" ";
document.form.text.focus();
}

function ff3(ffenster,fname)
{
fenster2 = window.open(ffenster,fname,'menubar=no,resizable=no,scrollbars=no,width=600,height=540');
fenster2.moveTo(screen.width/2-600/2,screen.height/2-540/2);
fenster2.focus();
}

function ff2(ffenster,fname)
{
fenster3 = window.open(ffenster,fname,'menubar=no,resizable=no,scrollbars=no,width=450,height=670');
fenster3.moveTo(screen.width/2-450/2,screen.height/2-670/2);
fenster3.focus();
}

function schliessen(ffenster,fname)
{
window.close();
}