function new_window(picture,x,y,author,name) { y=y+20; url="Graphics/subpage_photogallery/Pictures_large/"+picture+".jpg"; url01="Graphics/subpage_photogallery/close_window.gif"; var newwindow=window.open('','','width='+x+',height='+y+',top=0,left0,toolbar=no,location=no,directories=no,status=no,scrollbars=no'); newwindow.document.write('<html>'); newwindow.document.write('<head><title>'); newwindow.document.write(name+' by '+author); newwindow.document.write('</title>'); newwindow.document.write('<link href="pop-ups_style.css" rel="stylesheet" type="text/css"'); newwindow.document.write('</head>'); newwindow.document.write('<body>'); newwindow.document.write('<img src="'+url+'">'); newwindow.document.write('<div style="margin-top: 4px; margin-left: 5px;">'); newwindow.document.write(name+' by '+author); newwindow.document.write('<a href="javascript: window.close()"><img id="link" src="'+url01+'" /></a>'); newwindow.document.write('</div>'); newwindow.document.write('</body>'); newwindow.document.write('</html>'); newwindow.document.close(); }