
function loadRightText(url){
	xmlhttp = GetXmlHttpObject();
	if (xmlhttp != null){
	  xmlhttp.onreadystatechange = stateChanged;
	  xmlhttp.open("GET",url,true);
	  xmlhttp.send(null);
	} else {
		alert('Your browser does not support AJAX');
	}
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	  {
	  // code for IE7+, Firefox, Chrome, Opera, Safari
	  return new XMLHttpRequest();
	  }
	if (window.ActiveXObject)
	  {
	  // code for IE6, IE5
	  return new ActiveXObject("Microsoft.XMLHTTP");
	  }
	return null;
}

function stateChanged()
{
	if (xmlhttp.readyState==4)
	  {// 4 = "loaded"
	  if (xmlhttp.status==200)
	    {// 200 = "OK"
	    document.getElementById('rightText').innerHTML = xmlhttp.responseText;
	    }
	  else
	    {
	    alert("Problem retrieving data:" + xmlhttp.statusText);
	    }
	  }
}

