function GetXmlHttpObject()
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX. Please upgrade to a newer browser (IE6, IE7, Firefox or Safari), or contact technical support.");
				return false;
			}
		}
	}
	return xmlHttp;
}


//Modular, reusable function
function ajax_fill_content(serverpage, fillcontentid, displayloading)
{
	xmlHttp = GetXmlHttpObject();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==1 && displayloading==true)
		{
			document.getElementById(fillcontentid).innerHTML = "<img src='images/ajax-loader.gif' alt='' />";
		}
		if(xmlHttp.readyState==4)
		{
			document.getElementById(fillcontentid).innerHTML = xmlHttp.responseText;
		}
	}

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