function getHTTPObject()
{
	var http = false;
	if (window.XMLHttpRequest)
  	{ // Mozilla, Safari,...
    	http = new XMLHttpRequest();
    	if (http.overrideMimeType)
    		http.overrideMimeType('text/xml');
    }
  else
  	if (window.ActiveXObject)
  		{ // IE
      	try
      	{
        	http = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
        	try
        	{
          	http = new ActiveXObject("Microsoft.XMLHTTP");
          }
          catch (e) {}
        }
      }
	return http;
}

var http = null;

function getContent(url)
{
	http = getHTTPObject();
	if (!http)
		{
    alert('Error occured! Code: #0001-NO-AJAX');
    return false;
    }    
	http.onreadystatechange = fillInformation;
  http.open('GET', url, true);
  http.send(null);
}

function fillInformation()
{
 	if (http.readyState == 4)
 	{
	 	document.getElementById('content').innerHTML = http.responseText;
	}
}
