//===========================================================
// AJAX Data Functions
//===========================================================

//============================================================
// Function:.....:	loadData
// Summary:......:	AJAX Engine
// Return:.......:	None
//============================================================
function loadData ()
{
	var args = loadData.arguments	//indexed array of args
	
	if (document.getElementById)	//dom detection (activeX or xmlhttprequest obj)
	{
		var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	if (x)
	{
		x.onreadystatechange = function()
		{
			if (x.readyState == 4 && x.status == 200)	//page fully loaded successfully
			{
				el = document.getElementById(args[1]);
				el.innerHTML = x.responseText;
			}
		}
		x.open("GET", args[0], true);	//arg[2] = true = asynchronous :: false = no asynchronous
		x.send(null);
	}
}

//============================================================
// Function.....:	updateStatus
// Summary......:	Updates a user status message
// Dependencies.:	1. el must exist & id=status
// Return.......:	(string)
//============================================================
function updateStatus (str)
{
	var el = elemObj("status");
	if (el)
	{
		return el.innerHTML = str;
	}
}
