var xmlHttp=false;
var NeedAjax;
function send_request(showurl){
    xmlHttp=false;
	xmlHttp=GetXmlHttpObject()
    if(!xmlHttp){
     window.alert("Creat XMLHttp failed");
     return false;
    }
    xmlHttp.onreadystatechange=processrequest;
    xmlHttp.open("POST",showurl,true);
    xmlHttp.send(null);
}
function processrequest(){
    if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){    
      document.getElementById(reobj).innerHTML=xmlHttp.responseText;
    }
}
function dopage(obj,showurl){
   document.getElementById(obj).innerHTML= "Loading..."; 
   send_request(showurl);
   reobj=obj;
}
function GetXmlHttpObject(){
    var xmlHttp=null;
    try{
        
        xmlHttp=new XMLHttpRequest();
        
        }
    catch(e){
        try{
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
            }
        catch(e){
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
    return xmlHttp;
    
}
