function getData(page,divId)
{	var xhr = false;
	
	if (window.XMLHttpRequest) 
	{	xhr = new XMLHttpRequest();
	} 
	else if(window.ActiveXObject) 
	{	xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	if(xhr)
	{	xhr.open('GET',page, true);
		xhr.setRequestHeader("Content-type", "charset=iso-8859-1");
		xhr.onreadystatechange = function()
		{	if(xhr.readyState == 4 && xhr.status == 200)
			{	document.getElementById(divId).innerHTML = xhr.responseText;
				var xmldoc = xhr.responseText
				var chaine = xmldoc.substring(0,xmldoc.indexOf("\n"));
				var title = chaine.substring(7,chaine.length-8);
				document.title = title;
			}
		}
		xhr.send(null);
	}
}