<!--
function sh_list(tableMenu, imgcontainer)
{

	tm = document.getElementById(tableMenu);
	im = document.getElementById(imgcontainer);
	
	if(tm.style.display == "none" || tm.style.display == "")
	{
	tm.style.display  = "block";
	im.innerHTML='<img src="/images/minus.gif" align=\"absbottom\" alt=\"\" />';
	}
	else
	{
	tm.style.display = "none";
	im.innerHTML='<img src="/images/plus.gif" align=\"absbottom\" alt=\"\" />';
	}

}

function makeRequest(val, tp, spid) {

        var http_request = false;
        if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }

	//определяет функцию для обработки события onchange
        http_request.onreadystatechange = function() { change_sub(http_request, spid); };
        url = '/pea_putin.php?id='+val+'&tp='+tp;
        http_request.open('GET', url, true);
        http_request.send(null);

    }

    function change_sub(http_request, obj) {
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
		str_resp = http_request.responseText;
  		if(str_resp != '')
                         {
	   	      document.getElementById("spbusket").innerHTML = str_resp;
	   	      document.getElementById(obj).innerHTML = '<img src="/images/korzina_in.gif" alt="" title="товар в корзине" />';
		}
                
            } else {
                alert('There was a problem with the request.');
            }
        }

}
function show_order_form()
{
   tm = document.getElementById("order_form");

   if(tm.style.display == "none" || tm.style.display == "")
   {
    	tm.style.display  = "block";
	document.getElementById("arrow").innerHTML = "<img src=\"/images/mnopen.gif\" alt=\"\" />";
   }
   else
   {
	tm.style.display = "none";    
	document.getElementById("arrow").innerHTML = "<img src=\"/images/mnclose.gif\" alt=\"\" />";
   }
}
//--> 

