function getHTTPObject() {
   var xmlhttp = false;
   if (typeof XMLHttpRequest != 'undefined') {
      try {
         xmlhttp = new XMLHttpRequest();
      } catch (e) {
         xmlhttp = false;
      }
   } else {
        /*@cc_on
        @if (@_jscript_version >= 5)
            try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (E) {
                    xmlhttp = false;
                }
            }
        @end @*/
    }
   return xmlhttp;
}



function setContent( containerID, url)
{
   var container = document.getElementById(containerID);
   if ( container != null)
      container.innerHTML = '';

   var XMLHTTPObject = getHTTPObject();

   //XMLHTTPObject.open('GET', 'XMLHttpRequest/test.txt', true);
   XMLHTTPObject.open('GET', url, true);
   XMLHTTPObject.setRequestHeader("Cache-Control", "no-cache");
   XMLHTTPObject.setRequestHeader("X_USERAGENT", "ICT_CONCEPT_XCALLBACK");

   XMLHTTPObject.onreadystatechange=function()
   {
         if (XMLHTTPObject.readyState == 4 && XMLHTTPObject.responseText != '')
         {
            var txt = XMLHTTPObject.responseText
            if ( container != null && txt != '')
                container.innerHTML = txt;
            else
               alert('MSG :: ' + txt);
         }
   }
   XMLHTTPObject.send(null);
}

//function setContainerContent(containerId, uri)
//{
//   setContent( containerId, uri);
//}

