function Ajax(){
var xmlHttpReq=null;
if(window.ActiveXObject){
xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest){
xmlHttpReq=new XMLHttpRequest();
}
xmlHttpReq.open("GET","text.php",true);
xmlHttpReq.onreadystatechange=RequestCallBack;
xmlHttpReq.send(null);
function RequestCallBack(){
if(xmlHttpReq.readyState==4){
if(xmlHttpReq.status==200){
document.getElementById("resText").innerHTML=xmlHttpReq.responseText;
}
}
}
}