function load(page_name,width,height,wname)
  {
	window.open(page_name, wname, "width="+width+",height="+height+",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no");
  }

//==============Функция открывания новых окон заданных размеров с полосой прокрутки====
function load_scroll(page_name,width,height,wname)
  {
	window.open(page_name, wname, "width="+width+",height="+height+",scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no");
  }

  function clse_self(filename)
 {
	window.opener.location=filename;
	window.close(self);
  }

  function open_main(filename)
 {
	window.opener.location=filename;
  } 
  
  function img_act(imgName)
{    
      imgOn = eval(imgName + "on.src");
      document [imgName].src = imgOn;
      
}
function img_inact(imgName)
{     
      imgOff = eval(imgName + "off.src");
      document [imgName].src = imgOff;
} 

function img_ch(imgName)
{    
     img = eval(imgName + ".src");
     document ['im_main'].src = img;
}
function MenuItemOver(id, left, right) 
{ 
		document.getElementById("td"+id).style.background='url(/images/menu_bg_over.gif)';
		document.getElementById("sep"+id).src='/images/menu_'+left+'.gif';
		document.getElementById("sep"+eval(++id)).src='/images/menu_'+right+'.gif';
}
function MenuItemOut(id, left, right) 
{ 
		document.getElementById("td"+id).style.background='';
		document.getElementById("sep"+id).src='/images/menu_'+left+'.gif';
		document.getElementById("sep"+eval(++id)).src='/images/menu_'+right+'.gif';
}
function popupWindow(url) 
{
		window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,screenX=150,screenY=150,top=150,left=150')
}	