function pop(url,w,h){
	var HTMLString;
	var newwindow;
	var newdocument;
	var windoww = w + 20;
	var windowh = h + 40;
	
	HTMLString='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>Photo gallery</title><style type="text/css"><!-- body { text-align: center; font: .7em Verdana, Arial, Helvetica, sans-serif; } --></style></head>';
	HTMLString+='<body onBlur="self.close()" onClick="self.close()"><p><img src="' + url + '" width="' + w + '" height="' + h + '"><br>';
	HTMLString+='<a href="gallery.asp" onclick="self.close();">close window</a></p></body></html>';
	newwindow = window.open('blank.htm', 'photo', 'width=' + windoww + ',height=' + windowh + ',resizable');
	newwindow.document.open();
	newwindow.document.write(HTMLString);
	HTMLString='';
	newwindow.document.close();
	newwindow.focus();
}

