This example shows how to write one Javascript function that can be used for multiple pages at multiple sizes. Click on an image to open the pop-up window.