function swapClass(obj, cls) {
  obj.className = cls
}

var xmlhttp;

function LoadContent(n)
{
	if(n)
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
		xmlhttp.onreadystatechange = processReq;
		xmlhttp.open("POST", n + '.asp', false);
		xmlhttp.send("");
	}
}

function processReq()
{
	if (xmlhttp.readyState == 4)
	{
		if (xmlhttp.status == 200)
		{
			 //The URL exists so display it
			document.getElementById("bodycell").innerHTML = xmlhttp.responsetext;
		}
		else
		{
			//The URL doesn't exist so show an error message
			document.getElementById("bodycell").innerHTML = 'There was an error displaying the content';
		}
	}
}