
function showpic(pic, w, h, tit) {
	pw=window.open('', 'pw', 'height='+h+68+', width='+w+6+', screenX=50, screenY=50, top=50, left=50, toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes');
	if(!tit) tit='Картинка';
	buf = '<html><head><title>'+tit+'</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><a href=# onClick=self.close()><img src="'+pic+'" alt="Щелкните на картинке, чтобы закрыть окно" border=0></a></body></html>'
	pw.document.write(buf);
	pw.document.close();
	pw.resizeTo(w+6, h+68);
	pw.focus();
}

function ChStatus(s)
{
	document.getElementById('divproizvod').style.display = s ? "none" : "";
	document.getElementById('divparams').style.display = s ? "none" : "";
	document.getElementById('after_mod_ryad').style.display = s ? "" : "none";
}

function ShowZaklNum(num1, num)
{
	obj = document.getElementById('hz' + num1);
	if(obj.tagName == "TD")
	{
		document.getElementById('hz' + num1).className = num == num1 ? "border_lt" : "border_ltb";
	}
	document.getElementById('z' + num1).style.display = num == num1 ? "" : "none";
}

function ShowZakl(num)
{
	ShowZaklNum(1, num);
	ShowZaklNum(2, num);
	ShowZaklNum(3, num);
	ShowZaklNum(4, num);
	ShowZaklNum(5, num);
}

