Use javascript to call images into one html page


I have a flash site and when you click on an image a pop up html window appears and a larger version of the image appears. I would like to just have 1 html page and ten different images. When a button is clicked in my flash movie the html page is called with the correct image. Any ideas on how you do this with javascript?