
function createXMLHttpRequest()
{
    if (window.ActiveXObject) {
       var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
       var xmlHttp = new XMLHttpRequest();
    }

	return xmlHttp;
}

function generalAJAXStatus(xmlHttp, whatTodoNext)
{
    if(xmlHttp.readyState == 4)
	{
        if(xmlHttp.status == 200)
		{
			var responseStatus = xmlHttp.responseText;

			if(responseStatus != 'good')
			{
				alert(xmlHttp.responseText);
			}
			else
			{
				switch(whatTodoNext)
				{
				}
			}
		}
	}
}
