function GetListValues()
{
	if(xmlHttp.readyState == 4)
	{
		HideListLoading();
		document.getElementById('divCatUsers').innerHTML = xmlHttp.responseText;
	}
}

function AjaxListMain(strListName,strList)
{
	var strURL = "get_users.php?lst="+strListName;
	document.getElementById("selectedcat").value = strListName;
	ChangeHeader(strList);
	ShowListLoading();
	ConnectAjax();
	xmlHttp.onreadystatechange = GetListValues;
	xmlHttp.open("GET",strURL,true);
	xmlHttp.send(null);
}

function ShowListLoading()
{
	document.getElementById('imgLoading2').style.display = 'block';
	document.getElementById('divCatUsers').style.display = 'none';
}

function HideListLoading()
{
	document.getElementById('imgLoading2').style.display = 'none';
	document.getElementById('divCatUsers').style.display = 'block';
}

function ChangeHeader(strNewTitle)
{
	document.getElementById('divUsersHeader').innerHTML = strNewTitle;
}

function SetID(intID)
{
	document.getElementById('userid').value = intID;
}

