<!--

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

	if (!scroll) {

		scroll = 'no';

	}

	if (height > 500) {

		width += 15;
		height = 500;
		scroll = 'yes';

	}

	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=' + scroll + ', status=yes, resizable=yes');
	win.document.open();
	win.document.write(content);

}

//-->
