
var Cart = new Array();

	JsHttpRequest.query(
			'/cartarray.php',
            {
                'get': 1
            },
            function(result, errors) {
                if (result) {
                    Cart = result["cart"];
                    //document.getElementById("goodsnum").innerHtml += '|' + Cart.length;
					if (Cart.length > 0) {
						document.getElementById("korzinka").innerHtml = '<b>Корзина--</b> ( ' + Cart.length + ' )';
					}
                }
            },
            true
        );

function processCart(){ 	for (x in Cart)
	{
		a = document.getElementById("plus" + x);
		if(a)rd(x);
	}



	return false;
}