// JavaScript Document
var xmlhttp = false;
function makeRequest(url)
{
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XLHTTP");
	}
	catch(e)
	{
		try
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E)
		{
			xmlhttp = false;
		}
	}
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined')	
	{
		xmlhttp = new XMLHttpRequest();
	}
	
	//call the function to pupolate the div
	xmlhttp.onreadystatechange = populateDIV;
	
	//method= get url is the url and asynchronous method is set
	xmlhttp.open("GET", url, true);
	
	//send asynchronous request
	xmlhttp.send(null);
}

function populateDIV()
{
	if(xmlhttp.readystate == 4)
	{
		if(xmlhttp.status == 200)
		{
			document.getElementById('MyPage').innerHTML = xmlhttp.responseText;
		}
		else
		{
			alert("There was a problem with the request..!");
		}
	}
}