<!--
var n;
var k;
var l;
var mWindow;
var chWindow;
var my_method;

//----------------------------------------------------------------------

var resId=0;
var imgWndw;

//----------------------------------------------------------------------
//----------------------------------------------------------------------

function child_window (imgLink)
{
	var oImg;
  if (typeof(window.resizeBy)=='undefined') return true;

	if (imgWndw)
		if (!imgWndw.closed)
			imgWndw.close();

  imgWndw=window.open('',imgLink.target,'width=100,height=150'+
    ',toolbar=no,menubar=no,location=no,status=no,'+
    'resizable=yes,scrollbars=no,left='+(screen.width>>>2)+
    ',top='+(screen.height>>>4));
  self.focus();
  var imgTitle = "Нажмите на картинку, чтобы закрыть окно";
  imgWndw.document.title = imgTitle;
  imgWndw.document.body.leftmargin = 5;
  imgWndw.document.body.topmargin = 5;
  imgWndw.document.body.rightmargin = 5;
  imgWndw.document.body.bottommargin = 5;
  imgWndw.document.body.bgcolor = "White";
  imgWndw.document.body.style.margin = 0;
  imgWndw.document.body.style.padding = 0;
  imgWndw.document.body.style.backgroundColor = "White";
  imgWndw.document.body.style.overflow = "hidden";
  imgWndw.document.body.title = imgTitle;


  imgWndw.document.body.innerHTML = "<img id=\"myImg\" src=\"" + imgLink.href + "\" onclick=\"window.close();\" border=\"0\" alt=\"" + imgTitle + "\" title=\"" + imgTitle + "\" />";

  resId=setInterval("imgResize()",100);

  if ((oImg = imgWndw.document.getElementById ("myImg")) != null)
	oImg.onclick = myClose;

  return false;
}

//----------------------------------------------------------------------

function myClose (evt)
{
	evt = (evt) ? evt : event;
	if (imgWndw)
		if (!imgWndw.closed)
			imgWndw.close();

	return false;
}

//----------------------------------------------------------------------

function imgResize() {
  var w=imgWndw.document.images[0].width;
  if (w>screen.availWidth) w=screen.availWidth;
  var h=imgWndw.document.images[0].height;
  if (h>screen.availHeight) h=screen.availHeight;
  if (w>50 && h>50) {
    var ww=(imgWndw.innerWidth)?imgWndw.innerWidth:((document.body)?
      imgWndw.document.body.clientWidth:null);
    var wh=(imgWndw.innerHeight)?imgWndw.innerHeight:((document.body)?
      imgWndw.document.body.clientHeight:null);
    if (ww && wh) {
      imgWndw.resizeBy(w-ww,h-wh);
    }
    imgWndw.focus();
    clearInterval(resId)
  }
}

//----------------------------------------------------------------------
//----------------------------------------------------------------------

function new_window (n, k, l)
{
	if (mWindow)
		if (!mWindow.closed)
			mWindow.close();

	mWindow =  window.open (n, k, l);
}

//----------------------------------------------------------------------

function close_window ()
{
	if (mWindow)
		if (!mWindow.closed)
			mWindow.close();
}

//----------------------------------------------------------------------

function submit_exec()
{
	my_parent = window.opener;
	my_parent.focus ();
	my_parent.document.location.href = "/price.html";
	window.close ();
}

//----------------------------------------------------------------------

var subName;
function subDisplay (subName)
{
	var oTag;
	var imgname = "img" + subName;
	oTag = document.getElementById (subName);
	if (oTag.style.display == "none")
	{
		oTag.style.display = "block";
            	document.images[imgname].src = "i/folderOpen.gif";
	}

	else
	{
		oTag.style.display = "none";
		document.images[imgname].src = "i/folderClosed.gif";
	}
}

function subDisplay2 (subName)
{
	var oTag = document.getElementById (subName);

	if (oTag.style.display == "none")
		oTag.style.display = "block";

	else
		oTag.style.display = "none";
}
//----------------------------------------------------------------------
//-->