<!--

function newImageWindow(href, target, width, height) {

	var top = (document.body.clientHeight - height) / 2;
	var left = (document.body.clientWidth - width) / 2;
	top = Math.round(top);

	content = '<title>Просмотр</title><body style="margin: 0; padding: 0"><img src="' + href + '" border="0" alt="Закрити" title="Закрити" style="cursor: pointer" onclick="window.close()"><br>';
	win =  window.open('about:blank', 'new_windows', 'toolbar=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left + ', scrollbars=no, status=yes, resizable=yes');
	win.document.open();
	win.document.write(content);

}

//-->
