in reply to Displaying the progress of a CGI script in a popup window?
For the technique see Highlander: one instance at a time (Oct 00), Watching long processes through CGI (Aug 02)
Arranging a popup.... is all html/dom/javascript territory