function _CreateXMLHttpRequest()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	else
	{
		if(window.ActiveXObject)
		{
        	return new ActiveXObject("Microsoft.XMLHTTP");
		}
		else
		{
			return null;
		}
	}
}

function _RequestFile(method,URL,asyncFlag,sendContent,container)
{
	var objHttp = _CreateXMLHttpRequest();

	if(objHttp == null) return false;

	objHttp.onreadystatechange = function()
    {
		if((objHttp.readyState == 4) && (objHttp.status == 200))
		{
			_OnFileLoaded(objHttp,container)
		}
	}

	objHttp.open(method,URL,asyncFlag);

	switch(method)
	{
		case "GET":
			objHttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
			break;

		case "POST":
			objHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			break;
	}

	objHttp.send(sendContent);
}

function _OnFileLoaded(httpObject,container)
{
	document.getElementById(container).innerHTML = httpObject.responseText;
}

//

function _ProxyCall()
{
	_RequestFile('GET','/amlib/getrss.php',true,null,'amRssRegion');
}

function _ProxyCall2()
{
	_RequestFile('GET','/amlib/getrss2.php',true,null,'amRssRegion2');
}

function _ProxyCall3()
{
	_RequestFile('GET','/amlib/getrss3.php',true,null,'amRssRegion3');
}

function _ProxyCall4()
{
	_RequestFile('GET','/amlib/getrss4.php',true,null,'amRssRegion4');
}