function getIndex(filename)
{
	xmlhttp = createXMLHttpRequest();
	if(xmlhttp)
	{
		xmlhttp.onreadystatechange = check;
		xmlhttp.open("get", filename, true);
		xmlhttp.send(null);
	}
}

function check()
{
	if(xmlhttp.readyState == 4 | xmlhttp.status == 200)
	{
		document.getElementById("MainRight").innerHTML = xmlhttp.responseText;
	}
}

function createXMLHttpRequest()
{
	var XMLHttpObject = null;
	
	try
	{
		XMLHttpObject = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			XMLHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				XMLHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				return null;
			}
		}
	}
	return XMLHttpObject;
}