function ajax(url, div) {
  $.blockUI({ message: '<h1>Kérem várjon...<br /><img src="images/loading.gif" /></h1>' });
  var oXmlHttp = zXmlHttp.createRequest();
  oXmlHttp.open("get", url, true);
  oXmlHttp.onreadystatechange = function () {
    if (oXmlHttp.readyState == 4) {
      if (oXmlHttp.status == 200) {
        displayCustomerInfo(oXmlHttp.responseText, div);
      } else {
        displayCustomerInfo("An error occurred: " + oXmlHttp.statusText, div); //statusText is not always accurate
      }
    }
  };
  oXmlHttp.send(null);
  CB_Init();
}
        
function displayCustomerInfo(sText, div) {
  var divCustomerInfo = document.getElementById(div);
  divCustomerInfo.innerHTML = sText;
  CB_Init();
  $.unblockUI();
}
