var context;
var xmlHttp;

function stateChanged() 
{
	try
	{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 { 
		 //alert('step 1 good')
		 div = 	 document.getElementById(context);
		 //alert('context good')
		 if (div != null)
		 {
			 //alert('divExists');
		 	div.innerHTML=xmlHttp.responseText ;
		 	//alert('innerhtml filled')
	 	}
		 else
		 {
		 	alert('missing block' + context);
	 	}
	 }
 	} 
	catch(err)
	{
		alert(err.description);
		alert(xmlHttp.responseText);
		}
}
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	 {
	 // Firefox, Opera 8.0+, Safari
	 xmlHttp=new XMLHttpRequest();
	 }
	catch (e)
	 {
	 //Internet Explorer
	 try
	  {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	 catch (e)
	  {
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	 }
	return xmlHttp;
}
function notavailable()
{
	alert('This has not been implemented yet');
}

