seshu Palamanti wrote:The initial page loads and there are no windows the user submits the page then you call openwindow which opens the loading image, your backend process goes on and takes some time and finally when the page returns (results page) the results page contains the code to close the window. You also use a mechanism to close the window only by the results page and hence the toggle logic. The code i put it there is just give you an idea please dont take the code literally. It all depends on how how your page flow works. Hope this helps.