var targetToShowActivity;
var xmlHttpShowActivity;
	function getActivity(target)
	{
		targetToShowActivity=target;
		createXMLHttpRequestActivity();
		var url="../activity.html";
		xmlHttpShowActivity.onreadystatechange = getActivityCallback;
		xmlHttpShowActivity.open("GET", url ,true);
		xmlHttpShowActivity.send(null);
	}
	function createXMLHttpRequestActivity()
	{
		if(window.ActiveXObject)
			xmlHttpShowActivity = new ActiveXObject("Microsoft.XMLHTTP");
		else if(window.XMLHttpRequest)
			xmlHttpShowActivity = new XMLHttpRequest();
	}
	
	function getActivityCallback()
	{
		if(xmlHttpShowActivity.readyState==4)
		{
			if(xmlHttpShowActivity.status==200)
			{
				showActivity();
			}
		}
	}

	function showActivity()
	{
		document.getElementById(targetToShowActivity).innerHTML=xmlHttpShowActivity.responseText;
	}