Opens a new window with new URL and name, depending on what a user clicks.

This goes inside the <head></head> or between the </head> and <body> tags
Code:
<script language="JavaScript">
function OpenWin( url, name) {
window.open(url, name);
}
</script>
Then, to use it, just do this:

Code:
[img]image1.jpg[/img]


[img]image2.jpg[/img]
within the <body></body> of your HTML file.

Remember that a new window takes at least 2 arguments, URL, and Name. It can also take a third string of parameters for size, whether to display toolbars or not etc.