To avoid customers ending up with loads of popups, one could change the body-tag of popup_image.php
from:
<body onload="resize();">to:
<body onload="resize();" onBlur="self.close()" onClick="self.close()">
This way the popup is closed when it loses focus or when it's clicked on by the user.














