function getXMLHttpRequestObject ()
{
	var xmlobj;

	// check for existing requests
	if(xmlobj!=null && xmlobj.readyState!=0 && xmlobj.readyState!=4)
	{
		xmlobj.abort();
	}
	try
	{
		// instantiate object for Mozilla, Nestcape, etc.
		xmlobj=new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			// instantiate object for Internet Explorer
			xmlobj=new ActiveXObject('Microsoft.XMLHTTP');
		}
		catch(e)
		{
			// Ajax is not supported by the browser
			xmlobj=null;
			return false;
		}
	}

	return xmlobj;
}