function openImgPopup(pic, w, h, desc) {
	h2 = h
	if (desc != '') {
		h2 += 50
		desc = '<div style="width: 100%; height: 50px; background-color: black; color: white; overflow: auto;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;">'+desc+'</div>'
	}
	
	refWindow = open('','','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+w+',height='+h2)
	refWindow.document.write('<head style="margin: 0px; padding: 0px; width: 100%;"><title>::</title>')
	refWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">')
	refWindow.document.write('<link href="default.css" rel="stylesheet" type="text/css"></head>')
	refWindow.document.write('<body style="margin: 0px; padding: 0px; width: 100%;">')
	refWindow.document.write('<a href="javascript:self.close();">')
	refWindow.document.write('<img width="'+w+'" height="'+h+'" src="'+pic+'" border="0" />')
	refWindow.document.write('</a>')
	refWindow.document.write(desc)
	refWindow.document.write('</body>')
}