// JavaScript Document
var nWindow;
var wHeight = 0, wWidth = 0;

function popupwindow(url, title, iWidth, iHeight, colour) {
	var pWidth, pHeight;
	pWidth=iWidth;
	pHeight=iHeight;
	if (nWindow) {
		nWindow.close();
	} 
	nWindow=window.open('','htmlname','width=' + pWidth +',height=' +pHeight + ',resizable=1,top=50,left=10');
	nWindow.document.clear();
	nWindow.focus();
	nWindow.document.writeln('<html> <head> <title>' + title + '<\/title> <link href=\"css\/popup\.css\" rel=\"stylesheet\" type=\"text/css\" \/><\/head> <body bgcolor= \"' + colour + '\"> <center>');
	nWindow.document.writeln('<a href=\"javascript\:onClick=window\.close()\;\"><img src=' + url + ' title=\"' + title + ' schließen\" alt=\"' + title + ' schließen\" ><\/a>');
	nWindow.document.writeln('<\/center> <\/body> <\/html>');
	nWindow.document.close();
	nWindow.focus();
}
