     var xmlhttp;
        var indexLog = -1;
    function loadXMLDoc(url)
    {
            // code for Mozilla, etc.
        
            if (window.XMLHttpRequest)
            {
                    xmlhttp=new XMLHttpRequest()
                    xmlhttp.onreadystatechange=state_Change_Logs;
                    xmlhttp.open("GET",url,true)
                    xmlhttp.send(null)
            }
        // code for IE
           else if (window.ActiveXObject)
           {
                   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
                   if (xmlhttp)
                   {
                        xmlhttp.onreadystatechange=state_Change_Logs;            
                        xmlhttp.open("GET",url,true)
                        xmlhttp.send()
                   }
           }
       
    }

     
        function state_Change_Logs()
    {
            if (xmlhttp.readyState==4)
            {
                    // if "OK"
                    if (xmlhttp.status==200)
                    {
                        //alert(xmlhttp.responseText) ;
                        document.getElementById('subscriptionContent').innerHTML=xmlhttp.responseText ;
                
                    }
                    else
                    {
                        //alert("Problem retrieving data:" + xmlhttp.statusText)
                        var errString = "There was an error while retrieving log info.<br/>";
                        document.getElementById('subscriptionContent').innerHTML= errString+xmlhttp.status;        
                    }
        
            }
        }
