Hi, there is a bit of an update on my 1st link. I found this freebie download link & big help
http://www.alleycode.com/ & will save lots of time when testing. Download the HTML editor. When its up & working, click on file , select new & then plain text. Then paste the script onto the new blank page. You can now play around with the script to adjust it to how you like. Every time you make an adjustment, hit F9 for a quick test & preview.
PS. I was messing with this idea as well????
http://www.collectors-info.com/testing/pop_up_window_genorator.html