var ajx = false;

if (window.XMLHttpRequest) {
    ajx = new XMLHttpRequest();
} else if (window.ActiveXObject) {
    ajx = new ActiveXObject("Microsoft.XMLHTTP");
}

function ajx_load(divId, surl) {
  ajx.open("POST", encodeURI(surl), true);
  ajx.onreadystatechange=function() {
    if(ajx.readyState == 4) {
      document.getElementById(divId).innerHTML = ajx.responseText;
    }
  }
  ajx.send(null);
}