
function utile_arata(section_id, limit, search, nr_produse_per_page)
{

xmlHttp=GetXmlHttpObject()

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

var url="index.php?section=utile&page=ajax_utile"

if(section_id != '')
	url = url+'&section_id='+section_id

if(search != '')
	url = url+'&search='+search

if(nr_produse_per_page != '')
	url = url+'&nr_produse_per_page='+nr_produse_per_page

url=url+"&limit="+limit
//alert(url);
document.getElementById("id_utile_home").style.display='none';
document.getElementById("id_utile").style.display='none';
//document.getElementById("div_utile_cat").style.display='none';
if(document.getElementById("div_utile_cat") != null)
	document.getElementById("div_utile_cat").style.display='none';

xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged()
{

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{

      document.getElementById("id_arata_utile").innerHTML = xmlHttp.responseText
	}
}

function GetXmlHttpObject()
{
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}