function ajaxLoader(url,id) {
  var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
  var bustcacheparameter=""
  if (document.getElementById) {
    var x = (window.ActiveXObject)
            ? new ActiveXObject("Microsoft.XMLHTTP")
            : new XMLHttpRequest();
  }
  if (x) {
    el = document.getElementById(id);
    var oldBGColor=el.style.backgroundColor;
    el.style.background="lightblue url(/Modules/Ajax/ajax-loader.gif) no-repeat scroll center center";
    x.onreadystatechange = function() {
      if (x.readyState == 4) {
        el.style.background=oldBGColor + " none no-repeat fixed center center";
        el.innerHTML = (x.status == 200)
                      ? x.responseText
                      : "Ooops!! A broken link!"
                        +" Please contact the webmaster of this website ASAP"
                        +" and give him the following errorcode: " + x.status;
      }
    }
    if (bustcachevar) //if bust caching of external page
        bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
    x.open("GET", url+bustcacheparameter, true);
    x.send(null);
  }
  return false;
}




