function GetHTTPObject()
{
	if (window.ActiveXObject)
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if (window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	else
	{
		return null;
	}
}

var httpObject = null;

function showNewPage()
{
	if(httpObject.readyState == 4)
	{
		document.getElementById('contentbody').innerHTML = httpObject.responseText;
	}
}

function nhmChangePage(thisis, page)
{
	httpObject = GetHTTPObject();
	if (httpObject != null)
	{
		var topost = "thisis="+thisis+"&page="+page;
		httpObject.open("POST", "/php/nhmcontent.php", true);
		httpObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 
		httpObject.send(topost);
		httpObject.onreadystatechange = showNewPage;
	}
}
