
var oXmlHttp = null;
var iInterval = 3600000;
var iLastCommentId = -1;
var divNotification = null;

function checkComments() {
    if (!oXmlHttp) {
        oXmlHttp = zXmlHttp.createRequest();
    } else if (oXmlHttp.readyState != 0) {
        oXmlHttp.abort();
    }    
    
    oXmlHttp.open("get", "index-title.php", true);
    oXmlHttp.onreadystatechange = function () {               
        
        if (oXmlHttp.readyState == 4) {
            if (oXmlHttp.status == 200) {
			var divAdditionalLinks = document.getElementById("BlogNewsLinks");
                divAdditionalLinks.innerHTML = oXmlHttp.responseText;  
                divAdditionalLinks.style.display = "block";  
             setTimeout(checkComments, iInterval);                    
            }                         
        }
    };    

    oXmlHttp.send(null);       

}


//if Ajax is enabled, assign event handlers and begin fetching
window.onload = function () {
    if (zXmlHttp.isSupported()) {
        checkComments();              
    }
};// JavaScript Document