<!--

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

	if (height > 500) {

		height = 500;
		scrolling = 'yes';
		width += 18;

	}

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

	if (!scrolling) {

		scrolling = 'no';

	}

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

}

//-->