﻿function popup(imageName,imageWidth,imageHeight,alt) {
newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();}
