xmlHttp ///////////////////////////////AJAX PART1

function makeRequest(url, parameters)////////////////////AJAX PART 2
{ 
xmlHttp=GetXmlHttpObject() /////<----Refer to the function GetXmlHttpObject()
xmlHttp.onreadystatechange=doGet////<------ refer to function stateChanged()below
xmlHttp.open("GET",url+parameters,true)
xmlHttp.send(null)
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
}

/********************************************************************************************/
function doGet() ///////////////////////RESPONSE DATA*******1********
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 

hhh=document.getElementById("main").innerHTML=xmlHttp.responseText
window.scrollTo(0, hhh.offsetTop);

} 
}

/************************************/// 

function GetXmlHttpObject()///////////////////////AJAX PART3
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}

