function show(i) {if(document.getElementById) {e=document.getElementById(i);} else {e=document.all[i];} if(i=='copyright') e.style.top=document.body.scrollHeight-180; e.style.display="block";}

function hide(i) {if(document.getElementById) {e=document.getElementById(i);} else {e=document.all[i];} e.style.display="none";}

function count() {document.write("<img src='http://counter.yadro.ru/hit?t21.1;r" + escape(document.referrer) + ((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + ";u" + escape(document.URL) + ";" + Math.random() + "' width=88 height=31>")}

function load(id,p)
{
 var req;
 var sh = id.shift();
 if (document.getElementById) {el = document.getElementById(sh);}
 else {el = document.all[sh];}
 if (window.XMLHttpRequest) req = new XMLHttpRequest(); 
 else if (window.ActiveXObject)
 {
  try {req = new ActiveXObject('Msxml2.XMLHTTP');} catch (e){}
  try {req = new ActiveXObject('Microsoft.XMLHTTP');} catch (e){}
 }
 if (req) 
 {
  req.onreadystatechange = function() 
  {
    if (req.readyState == 4 && req.status == 200)
    {
     el.innerHTML = req.responseText;
     if(id.length > 0) load(id,p);
    }
  };  
  req.open("POST", "load.php?action=" + sh + "&p=" + p + "&title=" + document.title, true);
  req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  req.send('param=1');
 } 
 else el.innerHTML = "";
 return false;
}

function addBasket(code)
{
 load(['addbasket','bask1','bask2'],code);
 alert("Товар с кодом " + code + " успешно добавлен в корзину");
 return false;
}


