function ajaxSetDiv (div, url, loading)
{
	var xmlHttp;
	try { xmlHttp=new XMLHttpRequest(); }
	catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
	catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	catch (e) { return false; } } }

	xmlHttp.onreadystatechange = function ()
	{
		if (xmlHttp.readyState == 4)
		{
			document.getElementById(div).innerHTML = xmlHttp.responseText;
		}
	}

	if (loading != undefined)
	{
		document.getElementById(div).innerHTML = loading;
	}

	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);

	return xmlHttp;
}
