//get file with ajax (url, callback function, cachedCD - false add random value)
   function getXMLHTTPRequestCD() {
    try {
     req = new XMLHttpRequest();
    } catch(err1) {
     try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
     } catch(err2) {
      try {
       req = new ActiveXObject("Microsoft.XMLHTTP");
       } catch(err3) {
        req = false;
       }
      }
    }
    return req;
   }
  
   var http = getXMLHTTPRequestCD();

   function getFileWithAjaxCD(myUrlCD,callbackFunctionCD,cachedCD) {
    var modurl = myUrlCD;
    if (cachedCD == false) {
      var myRand = parseInt(Math.random()*999999999999999);
      modurl = myUrlCD+"?rand="+myRand;
    }
    http.open("GET", modurl, true);
    http.send(null);
    http.onreadystatechange = function() { useHttpResponseCD(callbackFunctionCD); }
   }
  
   function useHttpResponseCD (callbackFunctionCD) {
    if (http.readyState == 4) {
     if (http.status == 200) {
       callbackFunctionCD(http.responseText);
     }
    }
   }
