var xmlHttp

function AjaxUpdate(id, page, variables){
  xmlHttpUpdate=GetXmlHttpObject();
  if (xmlHttpUpdate==null){
    alert ("Your browser does not support AJAX!");
    return;
  } 

  var tab_url = page + "?" + variables;  
  xmlHttpUpdate.onreadystatechange=Changed;
  xmlHttpUpdate.open("GET",tab_url,true);
  xmlHttpUpdate.send(null);
}

function Changed(id){
  if(xmlHttpUpdate.readyState==4) {
    document.getElementById("FooterContent").innerHTML=xmlHttpUpdate.responseText;
  }
}

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

