var nUrl,nH,nW,menBar,stat,tarx,loc;
var nWin='';
var nwx=0;
var nL=0;
var nT=0;
function openWindow(nUrl,nW,nH,menBar,stat,tarx,loc)
{
nwx++;
if(nwx > 25)
{
  nwx=1;
  alert('Mehr als 25 tt-info-Fenster auf Ihrem Desktop!');
}

if(nW == 'x' || nW == '*')
{
  nW=screen.width;
  nH=screen.height;
}
else
{
  nT=(nwx-1)*20;
  nL=(nwx-1)*20;
}


if(tarx == 'wx')
{
  tarx=tarx+nwx;
}
if(stat)
{
   stat='yes';
}
else
{
   stat='no';
}
if(menBar)
{
  menBar='yes';
}
else
{
  menBar='no';
}
if(loc)
{
  loc='yes';
}
else
{
  loc='no';
}
nWin=window.open(nUrl, tarx,"width="+nW+",height="+nH+",left="+nL+", top="+nT+", status="+stat+",scrollbars=yes,toolbar=no,resizable=yes,menubar="+menBar+",location="+loc);
nWin.focus();
}

function textdruck(text)
{
  text=document
  print(text)
}
function GrafikAnzeigen(GrafikURL, Breite, Hoehe)
{
	Fensteroptionen="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";

	Grafikfenster=window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe + ',dependent=yes');
	Grafikfenster.focus();

	Grafikfenster.document.open();
	with(Grafikfenster)
	{
		document.write("<html><head>");
		document.write("<title>tt-info-pic</title>");
		document.write("<script language=\"Javascript\">");
		document.write("ScreenWidth = screen.width;") 
		document.write("ScreenHeight = screen.height;") 
		document.write("xpos = (ScreenWidth/2)-("+Breite+"/2);")
		document.write("ypos = (ScreenHeight/2)-("+Hoehe+"/2);") 
		document.write("window.moveTo(xpos,ypos);") 
		document.write("</script>");
		document.write("</head>");
		document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">");
		document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\" >");
		document.write("</body></html>");
	}
	return;
}

