<!--

function newWindow(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><br>';
	win =  window.open('about:blank', 'new_windows', 'toolbar=no, width=' + (width - 2) + ', height=' + (height - 2) + ', top=' + top + ', left=' + left + ', scrollbars=yes, status=yes, resizable=yes');
	win.document.open();
	win.document.write(content);

}

//-->
