I have a series of images that, when I click on the thumbnails, I would like to open in a pop-up window fitting the exact size of the image. All the images are either 600x400 wide, or 400x600 tall.... So i created 2 javascript popups, popTall and popWide, so when you click on a wide thumbnail, it accesses popWide, and the tall thumbnails access popTall. The popWide script is first in my code, and it works fine, but the popTall doesnt work at all.... Can you help me with my script so that each one works?! Thanks! Here is the script I'm using in the "HEAD"....
<head>
<SCRIPT LANGUAGE="JavaScript">
function popWide(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men
ubar=0,resizable=0,width=600,height=400,left = 376,top = 135');");
}
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
function popTall(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,men
ubar=0,resizable=1,width=400,height=600,left = 376,top = 135');");
}
// End -->
</script>