// onclick="openWindow('file|titel|width|height');"
function openWindow(imageString) {
	var separator = "|";
	imageArray = imageString.split(separator);
	var file = imageArray[0];
	var fTitel = imageArray[1];
	var b = imageArray[2];
	var h = imageArray[3];

	var wProperties,imgWidth,imgHeight,fWindow,b,h;

	if (self.innerWidth) {
		imgWidth = self.innerWidth;
		imgHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth) {
		imgWidth = document.documentElement.clientWidth;
		imgHeight = document.documentElement.clientHeight;
	}
	else if (document.body) {
		imgWidth = document.body.clientWidth;
		imgHeight = document.body.clientHeight;
	}

	x = (imgWidth-b)/2;
	y = (imgHeight-h)/2;

	wProperties="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",resizable=yes";

	window.open(file,"newWindow",wProperties);
}

