function popupImage(imageURL)
{
var args = arguments;
var imageWidth = args.length > 2 ? args[1] : 480;
var imageHeight = args.length > 2 ? args[2] : 480;
var wndLeft = (screen.width / 2) - (imageWidth / 2);
var wndTop = (screen.height / 2) - (imageHeight / 2);
var popupWindow = window.open("", 1, "toolbar=0, scrollbars=0, location=0, statusbar=1, menubar=0, resizable=1, width=" + imageWidth + ", height=" + imageHeight + ", left=" + wndLeft + ", top=" + wndTop);
popupWindow.document.open();
popupWindow.document.write('<html><head><title>: Diabetes Schwerpunktpraxis Berlin :</title></head><body leftMargin="0" topMargin="0" marginHeight="0" marginWidth="0" style="margin:0px;" background="pix/bg2.jpg" bgcolor="#D2EEAA"><img src="' + imageURL + '" onClick="self.close();" style="cursor:pointer;" onLoad="opener.alignPopup(window, this.width, this.height);"></body></html>');
popupWindow.document.close();
}

function alignPopup(wnd, imageWidth, imageHeight)
{
var wndLeft = (screen.width / 2) - (imageWidth / 2);
var wndTop = (screen.height / 2) - (imageHeight / 2);
wnd.moveTo(wndLeft, wndTop);
wnd.resizeTo(imageWidth + 10, imageHeight + 29);
} 

