/*
var xmlHttp;

function GetCartInfo(script_url) {
  xmlHttp = GetXmlHttpObject();
  if (xmlHttp == null) {
    alert("Извините, Ваш браузер не поддерживает HTTPRequest");
    return;
  }
  var url = script_url + "cartinfo/index/sid_" + Math.random();
  xmlHttp.onreadystatechange = stateChanged;
  xmlHttp.open("GET", url, true);
  xmlHttp.send(null);
}

function GetXmlHttpObject() {
  var objXMLHttp = null;

  if (window.XMLHttpRequest) {
    try {
      objXMLHttp = new XMLHttpRequest();
    } catch (e) {
    }
  } else if (window.ActiveXObject) {
    try {
      objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    }
  }
  return objXMLHttp;
}
*/

var timerID;

function HideTimedLayer(id) {
  if (document.getElementById(id)) {
    document.getElementById(id).style.display = "none";
  }
  clearTimeout(timerID);
}

function OpenWin(path, width, height) {
  if (width == 0 || height == 0) {
    width = 740;
    height = 560;
  }
  window.open(path, 'wnd', 'left=60,top=20,height=' + height + ',width=' + width + ',menubar=no,resizable=yes,status=no,scrollbars=auto,toolbar=no,directories=no');
}


