antville/code/Site/javascript.skin
Tobi Schäfer c61ac74b09 moved "user-safe" javascript stuff into root/systemscripts which is
automatically appended onto site/javascript.skin
(root/safescripts_action is deprecated now)
2003-10-30 14:59:28 +00:00

12 lines
476 B
Text

var imgWindow = "";
function openPopup(img, width, height) {
if (img && width && height) {
width = Math.min(width + 36, 640);
height = Math.min(height + 30, 480);
if (imgWindow.location && !imgWindow.closed)
imgWindow.close();
imgWindow = window.open(img, "imgWindow" + width + height, "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
// imgWindow.focus();
}
}