function newRequest()
{
	var xmlHttp;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
		try
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e)
		{
			return false;
		}
	}
	}
	return xmlHttp;
}

xmlHttp = newRequest();
subject_id = '';

function handleHttpResponse()
{
    if(xmlHttp.readyState == 4)
    {
		if (subject_id != '')
		{
			document.getElementById(subject_id).innerHTML = xmlHttp.responseText;
		}		
    }
}