function createXmlHttpRequest()
{
	var xmlHttp = null;
	if (window.ActiveXObject)
	{
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if (window.XMLHttpRequest)
	{
		xmlHttp = new XMLHttpRequest();
	}
	return xmlHttp;
}

function ajaxGetPlainText(url, getDataCallback)
{
	var xmlHttp = createXmlHttpRequest();
	if (xmlHttp != null)
	{
		xmlHttp.onreadystatechange = function()
		{
			if (xmlHttp.readyState == 4)
			{
				if (xmlHttp.status == 200)
				{
					if (getDataCallback != null)
					{
						getDataCallback(xmlHttp.responseText);
					}
				}
			}
		}
		
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	}
	else
	{
		window.alert('Your browser is not supporting ajax!');
	}
}