function imageWin(refImage, xHigh, xWidth, winTitule)
{

 var height=0;
 var width=0;
 var nScroll=0;
 var xScroll="no";

 if (self.screen) {	 // for NN4 and IE4
		width = screen.width
		height = screen.height
 }
 else if (self.java) {   // for NN3 with enabled Java
	   var jkit = java.awt.Toolkit.getDefaultToolkit();
	   var scrsize = jkit.getScreenSize();
	   width = scrsize.width;
	   height = scrsize.height;
 }

if (height > 0 && width > 0) {
 if (xHigh > (height-70)) {
  xHigh = height - 70;
  nScroll = 1;
 }

 if (xWidth > (width-50)) {
  xWidth = width - 50;
  nScroll = 1;
 }
 else {
  if (nScroll != 0) {
   xWidth = xWidth + 15;
  }
 }

 if (nScroll != 0) {
  xScroll="yes";
 }
}

 myWin= open("", "displayWindow","width="+xWidth+",height="+xHigh+",status=no,toolbar=no,menubar=no,scrollbars="+xScroll);

 myWin.document.open();
 myWin.document.write("<head>");
 myWin.document.write("<title>"+winTitule+"</title>");
 myWin.document.write("</head>");
 myWin.document.write("<body topmargin='0' leftmargin='0'>");
 myWin.document.write("<img src="+refImage+" alt="+refImage+" border='0' />");
 myWin.document.write("</body>");
 myWin.document.close();
}

function makeArray(n)
{
 this.length = n;
 for (i=1;i<=n;i++){this[i]=0}
 return this;
}

function displayDate()
{
 var this_month = new makeArray(12);
 this_month[0] = 'Января';
 this_month[1] = 'Февраля';
 this_month[2] = 'Марта';
 this_month[3] = 'Апреля';
 this_month[4] = 'Мая';
 this_month[5] = 'Июня';
 this_month[6] = 'Июля';
 this_month[7] = 'Августа';
 this_month[8] = 'Сентября';
 this_month[9] = 'Октября';
 this_month[10] = 'Ноября';
 this_month[11] = 'Декабря';
 var today = new Date();
 var month = today.getMonth();
 var year = today.getYear()
 if (year< 1900) {
  year += 1900;
 }
 d = new Date();
	nhour  = d.getHours();
	nmin   = d.getMinutes();
	nsec   = d.getSeconds();
   if(nmin <= 9) {nmin = "0" +nmin;}
   if(nsec <= 9) {nsec = "0" +nsec;}
	

 window.status="ООО ПКФ Электрон комплекс"
 document.forma01.chislo.value=today.getDate()+' '+this_month[month]+' '+year+' г';
 document.forma01.vremya.value=nhour+':'+nmin+':'+nsec;
 setTimeout('displayDate()',2000)
}

function mainMenu(submenu)
{
var shout="'#94A7BA'"
var shover="'#6B86A0'"

var shout1="'#D0DCE7'"
var shover1="'#9AB4CB'"

var sh="'"
document.write('<table width="100%">');
if (submenu==0)
{
document.write('<tr><td onclick="window.location='+sh+'product/indexb.html'+sh+'"><a href="product/indexb.html">&#160;<img src="image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'product/indext.html'+sh+'"><a href="product/indext.html">&#160;<img src="image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'product/index.html'+sh+'"><a href="product/index.html">&#160;<img src="image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'product/mgp.html'+sh+'"><a href="product/mgp.html">&#160;<img src="image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="elprice.zip">&#160;<img src="image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}
if (submenu==10)
{
document.write('<tr><td onclick="window.location='+sh+'../product/indexb.html'+sh+'"><a href="../product/indexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../product/indext.html'+sh+'"><a href="../product/indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'../product/index.html'+sh+'"><a href="../product/index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../product/mgp.html'+sh+'"><a href="../product/mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}

if (submenu==20)
{
document.write('<tr><td onclick="window.location='+sh+'indexb.html'+sh+'"><a href="indexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'indext.html'+sh+'"><a href="indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'index.html'+sh+'"><a href="index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'mgp.html'+sh+'"><a href="mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="../elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}

if (submenu==1)
{
document.write('<tr><td onclick="window.location='+sh+'indexb.html'+sh+'"><a title="" href="indexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'bpc.html'+sh+'"><a title="Блоки питания стабилизированные" href="bpc.html">&#160;&#0187;&#160;<strong>[БПС]</strong></a></td></tr>');
// document.write('<tr><td onclick="window.location='+sh+'bpcr.html'+sh+'"><a title="Блок питания стабилизированный с резервированием " href="bpcr.html">&#160;&#0187;&#160;[БПСР]</a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'bpn.html'+sh+'"><a title="Блоки питания не стабилизированные" href="bpn.html">&#160;&#0187;&#160;<strong>[БПН]</strong></a></td></tr>');
// document.write('<tr><td onclick="window.location='+sh+'bpi.html'+sh+'"><a title="Блок питани импульсные" href="bpi.html">&#160;&#0187;&#160;[БПИ]</a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'bp.html'+sh+'"><a title="Блок питани" href="bp.html">&#160;&#0187;&#160;<strong>[БП]</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'indext.html'+sh+'"><a title="" href="indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'index.html'+sh+'"><a href="index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'mgp.html'+sh+'"><a title="" href="mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="../elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}
if (submenu==2)
{
document.write('<tr><td onclick="window.location='+sh+'indexb.html'+sh+'"><a title="" href="indexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'indext.html'+sh+'"><a title="" href="indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'tp.html'+sh+'"><a title="Трансформаторы на витом магнитопроводе" href="tp.html">&#160;&#0187;&#160;<strong>[ТП]</strong></a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'ttp.html'+sh+'"><a title="Трансформаторы на тороидальном магнитопроводе" href="ttp.html">&#160;&#0187;&#160;<strong>[ТТП]</strong></a></td></tr>');
 document.write('<tr><td onclick="window.location='+sh+'ttp.html'+sh+'"><a title="Трансформаторы звуковые" href="tz.html">&#160;&#0187;&#160;<strong>[ТЗ]</strong></a></td></tr>');
// document.write('<tr><td onclick="window.location='+sh+'index.html'+sh+'"><a href="index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'mgp.html'+sh+'"><a title="" href="mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="../elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}
if (submenu==3)
{
document.write('<tr><td onclick="window.location='+sh+'indexb.html'+sh+'"><a href="ndexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'indext.html'+sh+'"><a href="indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'index.html'+sh+'"><a href="index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
// document.write('<tr><td onclick="window.location='+sh+'ac.html'+sh+'"><a title="???" href="ac.html">&#160;&#0187;&#160;[DC-AC]</a></td></tr>');
// document.write('<tr><td onclick="window.location='+sh+'dc.html'+sh+'"><a title="???" href="dc.html">&#160;&#0187;&#160;[DC-DC]</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'mgp.html'+sh+'"><a href="mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="../elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}
if (submenu==4)
{
document.write('<tr><td onclick="window.location='+sh+'indexb.html'+sh+'"><a href="indexb.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Блоки питания</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'indext.html'+sh+'"><a href="indext.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Трансформаторы</strong></a></td></tr>');
//document.write('<tr><td onclick="window.location='+sh+'index.html'+sh+'"><a href="index.html">&#160;<img src="../image/li.gif" border="0" />&#160;Преобразователи</a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'mgp.html'+sh+'"><a href="mgp.html">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Магнитопровод</strong></a></td></tr>');
document.write('<tr><td onclick="window.location='+sh+'../elprice.zip'+sh+'"><a title="Прайс в формате XLS [180 Kb]" href="../elprice.zip">&#160;<img src="../image/li.gif" border="0" />&#160;<strong>Прайс</strong></a></td></tr>');
}
document.write('</table>');
}


