You need to make some changes in the below mentioned code. Highlighted the changes you need to make.
Code:
document.write('<a href='+'"'+imagelinks[ry]+'"'+' ><img src="'+myimages[ry]+'" border=0 id="image"></a>')
Insert the following code in to the script element of your page.
Code:
function openWin(){
var w = window.open("","","height=400,width=500");
w.document.write ("<html>\n<head>\n<title>Popup Document</title>\n</head>\n<body>\n");
w.document.write ("<img src='" + document.getElementById('image').src + "' border='0'>");
w.document.write ("\n</body\n</html>");
w.document.close();
}
After that in onclick event of the button you've mentioned invoke openWin function. You'll be able to open a new window and the image will be in it.
Hope this helps.
Bookmarks