function img_popup(nom,title,w,h) {
	var uh = document.body.clientHeight;
	var uw = document.body.clientWidth;
	var html = '<html><head><title>'+title+'</title></head><body style="margin:0; padding:0;"><a href="#" onClick="window.close()" title="'+title+' [Закрыть]"><img src="'+nom+'" border="0" alt="'+title+' [Закрыть]" /></a></body></html>'
	PopupWindow = window.open("", title, "left="+(uw/2-w/2)+",top="+(uh/2-h/2)+",location=no,width="+w+",height="+h+",scrollbars=no"); 
	PopupWindow.document.write(html);
}
