I have a popup, which is opened in javascript. When the cross, in the top right, is pressed the box closes, The popup is a template, and is reused, but the second time, its not firing the code on load. How do I unload a popup box, when the close cross (top left) is pressed ?