function cats_checkboxes_get_children(cat_id)
	{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}

	var div_id   = "cat_"+cat_id;
	var span_id  = "span_"+cat_id;
	var div_info = document.getElementById(div_id).innerHTML;
	document.getElementById(div_id).innerHTML=document.getElementById(div_id).innerHTML+"<img src='images/loading.gif'/>";
	var url="ajax/cats_checkboxes_get_children.php?cat_id="+cat_id;	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);	
	xmlHttp.onreadystatechange=function()
		{
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 		{
			if (xmlHttp.responseText !== 'no child')
				{
				document.getElementById(div_id).innerHTML = div_info +"<div class='tree'>"+xmlHttp.responseText+"</div>";
				document.getElementById(span_id).onclick ='';
				}
			else
				{
				document.getElementById(div_id).innerHTML =div_info + "<span class='tip'>Nu are subcategorii</div>";	
				}
			}
		}
	}
