
function handleHttpResponse() {
  if (http.readyState == 4) {
    result = http.responseText;
    document.getElementById('centro').innerHTML = result;
  }
}

function updateCorpo(url) {
  document.getElementById('centro').innerHTML = "<br/><br/><br/><br/><br/><br/><center><img src=\"images/carregando.gif\" border=\"0\"/></center>";
  http.open("GET", url, true);
  http.onreadystatechange = handleHttpResponse;
  http.send(null);
}

function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObject();