var xmlHttp = null;

function initAjax()
{
	if (window.XMLHttpRequest)
	{
		xmlHttp = new XMLHttpRequest ();
	}
	else if (window.ActiveXObject)
	{
		try 
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch ( ex )
		{
			try 
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch ( ex )
			{}
		}
	}
}

function startRequest(hi) 
{
	initAjax();
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.open( "GET", startRequest.arguments[0], true );
	xmlHttp.send( null );
}


function handleStateChange() 
{
	if(xmlHttp.readyState == 4)
	{
		if(xmlHttp.status == 200)
		{
			refText1 = document.getElementById("main");
			refText1.innerHTML = xmlHttp.responseText;
		}
		else
			alert("xmlHttp.statue ist : " + xmlHttp.status + xmlHttp.statusText );
	}
}