function openCat(plus, cat_id)
{
	if (plus==null)
		plus= document.getElementById('ri'+cat_id);
	var procd_obj = document.getElementById('submenu'+cat_id);
	if (procd_obj.innerHTML == "") {
		document.body.style.cursor = "wait";
		plus.style.cursor = "wait";
		var req = new Subsys_JsHttpRequest_Js();
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				if (req.responseJS) {
					document.body.style.cursor = "default";
					plus.style.cursor = "pointer";
					procd_obj.innerHTML = req.responseJS.result;
					plus.src = '/images/bt_minus.gif';
					procd_obj.style.display = 'block';
				} else {
					document.body.style.cursor = "default";
					plus.style.cursor = "hand";
					alert(req.responseText);
				}
			}
		}

		req.caching = true;
		req.open('GET', '/ajax_srazdel.php', true);
		req.send({ id: cat_id });
	} else {
		if (procd_obj.style.display == 'none') {
			plus.src = '/images/bt_minus.gif';
			procd_obj.style.display = 'block';
		} else {
			plus.src = '/images/bt_plus.gif';
			procd_obj.style.display = 'none';
		}
	}

}
