    function doLoad(force,p_id) {
		switch_loading_box('loading-layer');
        var product_id = '' + document.getElementById('product_id_'+p_id).value;
        var product_number = '' + document.getElementById('product_number_'+p_id).value;

        var req = new Subsys_JsHttpRequest_Js();

        req.onreadystatechange = function() {
            if (req.readyState == 4) {
                if (req.responseJS) {
			obj_number = document.getElementById('basket_number');
			obj_total = document.getElementById('basket_total');
			obj_currency = document.getElementById('basket_currency');

			if (typeof(obj_number)) {obj_number.innerHTML = (req.responseJS.basket_number||'');}
			if (typeof(obj_total)) obj_total.innerHTML = (req.responseJS.basket_total||'');
			if (typeof(obj_currency)) obj_currency.innerHTML = (req.responseJS.currency||'');
               }

		setTimeout("switch_loading_box('loading-layer')",400);
            }
        }

        req.caching = false;
        module_url = window.location.toString();
        module_url = module_url.replace("http://","");
        module_url = module_url.split("/");
        module_url = "http://"+module_url[0]+"/"+module_url[1];

        req.open('GET', module_url+'/basket_add/', true);

        req.send({ product_id: product_id,product_number: product_number});

        return false;
    }
	

	function change_all(id) {
/*
		mainObj=document.getElementById("cat_"+id);
		divObj=document.getElementById("div_"+id);

		for (i=0; i<divObj.childNodes.length; i++) {
			if (divObj.childNodes[i].firstChild.tagName=="INPUT")
				divObj.childNodes[i].firstChild.checked=mainObj.checked;

			for (y=0; y<divObj.childNodes[i].childNodes.length; y++) {
				divI=divObj.childNodes[i].childNodes[y].id.replace("div_","").replace("cat_","");
				alert(divI);
				if (!isNaN(divI) && divI!="") {
					alert('o-'+divI);
					change_all(divI.toString());
				}
			}
		}
*/		
	}
