<!-- 
function imagepopup(myimage, w, h) {
	// calcs
	h += 95;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable';
	// open popup
	win = window.open('', 'vortex', winprops);
	// make sure position is reset
	if (win.height != h || win.width != w) {
		win.resizeTo( (w+12), (h+12) );
	}
	if (win.top != wint || win.left != winl) {
		win.moveTo(winl, wint);
	}
	//write html
	doc = win.document;
	doc.open();
	doc.writeln('<html><head><title>Vortex</title>');
	doc.writeln('<style>a { color:#4848D4; } body  { margin:0;font: 11px Verdana, Arial, Helvetica, sans-serif;color:#555;background:#FFF; }</style>');
	doc.writeln('</head>');
	doc.writeln('<body>');
	doc.writeln('<span style="width:100%; margin-bottom:2px;text-align:center"><img src="'+myimage+'"></span>');
	doc.writeln('<p style="width:100%; margin-top:4px; margin-bottom:2px;text-align:center"><a href="javascript:self.print()">Print Image</a></p>');
	doc.writeln('<p style="width:100%;margin-top:4px; text-align:center"><a href="javascript:self.close()">Close Window</a></p>');
	doc.writeln('</body></html>');
	// close the document (so html shown)
	doc.close(); 
	// focus on completed window
	win.window.focus();
}
//-->