Hello Everyone --

I am programming a site in PHP where I have a row of small images. When I click on these images, a larger version of this new image appears above it. When I click on the larger image, I have a javascript popup with an even larger version of the image.

I have my image change working correctly with onClick. What I need to do is also change the destination link of my pop up based on which image is clicked.

Does anyone know of any javascript out there that can change both the image and link based on the onClick action?

Thanks for your help!