﻿function review (wid, heg, which, desc, img, wid_img, heg_img) {
	wtop = 50;
	wleft = (screen.width/2-wid/2);
	blank = window.open('','_blank','toolbar=yes,menubar=yes,scrollbars=yes,status=0,width='+ wid +',height='+ heg +',top=' + wtop + ',left='+ wleft);
	page =	'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n' + 
			'<html>\n<head>\n<title>'+ which.title +'<\/title>\n'+
			'<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />' +
			'<meta http-equiv="imagetoolbar" content="false" />' +
			'<link rel="stylesheet" type="text/css" href="css/review.css" media="screen" />'+
			'<\/head>\n'+
			'<body style="padding:0;margin:0;">\n'+
			'<div id="wrapper" style="margin:5px;">\n' +
			'<h1 style="clear: both;">'+ which.title +'<\/h1>\n'+
			'<div style="display: block; margin:  5px 0; clear:both;"><img src="i/' + img +'" width="'+ wid_img +'" height="'+ heg_img +'" alt="" /><\/div> \n'+
			'<div>' + desc + '<\/div>\n'+
			'<p style="text-align:center;"><a href="javascript:window.close();">Закрыть окно<\/a><\/p>\n'+
			'<\/div>\n' +
			'<\/body>\n<\/html>';
	blank.document.open();
	blank.document.write(page);
	blank.document.close();
	return false;
}
