function type(thing){
	try{
		// Firefox, Opera 8.0+, Safari
		thing=new XMLHttpRequest();
	}
	catch (e){
		// Internet Explorer
		try{
		thing=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
			try{
				thing=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e){
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return thing;
}

function newBody(page){
	var xmlHttp;
	xmlHttp = type(xmlHttp);
	
	xmlHttp.onreadystatechange=function()
	  {
	  if(xmlHttp.readyState==4)
		{
		document.getElementById('DefaultContent').innerHTML=xmlHttp.responseText;
		}
	  }
	xmlHttp.open("GET","change.php?page="+page,true);
	xmlHttp.send(null);
}

function setLinks(page){
	var xmlHttp2;
	xmlHttp2 = type(xmlHttp2);
	
	xmlHttp2.onreadystatechange=function()
	  {
	  if(xmlHttp2.readyState==4)
		{
		document.getElementById('links').innerHTML=xmlHttp2.responseText;
		}
	  }
	xmlHttp2.open("GET","change.php?page="+page,true);
	xmlHttp2.send(null);
}