I´ve been trying to solve this simple yet tricky problem: I´ve got to show some images on a template page. These images are stored in a database. When the template is accessed it retrieves data from the database. The image related to that record is recorded in a file used by the template. <BR><BR>The image file needs to be deleted after the template page is released and I´ve written a script to do it. The problem is: how can I start this script? onUnload() event handler doesn´t work, ´cos the template is shown on a new window and I want to start the script when I close that window.<BR><BR>Has anyone got a hint?<BR><BR>Thanx in advance,<BR><BR>Monica.<BR><BR>