<!--
window.Js_Navigate = function(url, target, params, focus)
{
    if (typeof(url) == "undefined" || url == "")
    {
        return;
    }

    if  (typeof(params) != "undefined")
    {
        var newWindow = this.open(url, target, params);
        if( focus )
          newWindow.focus();
    }
    else
    {
        try
        {
	        var element = document.body.appendChild(document.createElement("A"));

            element.setAttribute("href", url);

            if (typeof(target) == "string" && target != "")
            {
                element.setAttribute("target", target);
            }

            element.click();
        }
        catch (e)
        {
            if (typeof(target) == "string" && target != "")
            {
                this.open(url, target);
            }
            else
            {
                this.location = url;
            }
        }
    }
}

// Подтверждение выполнения действия.
// 1. message - сообщение, показываемое в окне подтверждения.
// Результат: Результат подтверждения.
window.Js_Confirm = function(message)
{
    var result = true;

    if (message == undefined || message == "")
    {
        message = "Вы уверены, что хотите это сделать?";
    }

    try
    {
        result = this.confirm(message);
    }
    catch (e)
    {
    }

    return result;
}

function g(url){
  if (opener){
    if (opener.closed)
      window.open(url, "");
    else if (opener.location.href.search(url) == -1)
      opener.location.href = url;
      opener.location.reload();
    self.close();
    return false;
  }
  return true;
}


function change(img, ref) { document.images[img].src = ref; }

function hideSec(secName)
{
	var sec = window.document.getElementById(secName);
	var img = window.document.getElementById(secName+"img");
	if (sec.style.display == 'none')
	{
		if (sec != null) sec.style.display = 'block';
		if (img != null) img.scr = '/img/ar_up.gif';
	}
	else
	{
		if (sec != null) sec.style.display = 'none';
		if (img != null) img.scr = '/img/ar_down.gif';
	}
}



// -->