function sendRequestCategory(url,params,HttpMethod)
{
	if (!HttpMethod)
	{
		HttpMethod = "GET";
	}
	oCtg = initXMLHTTPRequest();
	if (oCtg)
	{
		oCtg.onreadystatechange = onReadyStateCategory;
		oCtg.open(HttpMethod,url,true);
		oCtg.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		oCtg.send(params);
	}
}

function onReadyStateCategory()
{
	var ready = oCtg.readyState;
	var ctgXml = null;
	if (ready == READY_STATE_COMPLETE)
	{
	  if (oCtg.status == 200)
    {
			//...some code here...
			ctgXml = oCtg.responseXML;
			createCategory(ctgXml,ctgHtml);
    }
		else
		{
			ctgXml = "Problem retrieving XML data";
			ctgHtml.innerHTML = ctgXml;
    }
	}
	else
	{
		ctgXml = "<img src='../img/loading.gif' /> loading..";
		ctgHtml.innerHTML = ctgXml;
	}
}