// JavaScript Document

function getlisteners3712() {
            var oXmlHttp = zXmlHttp.createRequest();
    	    oXmlHttp.open("get", "getlisteners3712.php", true);
            oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200) {
                        displaylisteners3712(oXmlHttp.responseText);
                    } else {
                        displaylisteners3712("An error occurred: " + oXmlHttp.statusText);
                    }
                }
            };
        oXmlHttp.send(null);
        }
        function displaylisteners3712(sText) {
        var divInfo = document.getElementById("listeners3712");
        divInfo.innerHTML = "Слушателей: " + sText;
        }
		
function getcurentsong3712() {
            var oXmlHttp = zXmlHttp.createRequest();
    	    oXmlHttp.open("get", "getcurentsong3712.php", true);
            oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200) {
                        displaycurentsong3712(oXmlHttp.responseText);
                    } else {
                        displaycurentsong3712("An error occurred: " + oXmlHttp.statusText);
                    }
                }
            };
        oXmlHttp.send(null);
        }
        function displaycurentsong3712(sText) {
        var divInfo = document.getElementById("curentsong3712");
        divInfo.innerHTML = "Текущая композиция: " + sText;
        }
		
function getonline3712() {
            var oXmlHttp = zXmlHttp.createRequest();
    	    oXmlHttp.open("get", "getonline3712.php", true);
            oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200) {
                        displaycuronline3712(oXmlHttp.responseText);
                    } else {
                        displaycuronline3712("An error occurred: " + oXmlHttp.statusText);
                    }
                }
            };
        oXmlHttp.send(null);
        }
        function displaycuronline3712(sText) {
        var divInfo = document.getElementById("curonline3712");
        divInfo.innerHTML = " " + sText;
	if (sText==0)
	divInfo.innerHTML = "Вещание записи";
	if (sText==1)
	divInfo.innerHTML = "Онлайн-вещание";
	
	
        }
		
function getadjcomment3712() {
            var oXmlHttp = zXmlHttp.createRequest();
    	    oXmlHttp.open("get", "getadjcomment3712.php", true);
            oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200) {
                        displaycuradjcomment3712(oXmlHttp.responseText);
                    } else {
                        displaycuradjcomment3712("An error occurred: " + oXmlHttp.statusText);
                    }
                }
            };
        oXmlHttp.send(null);
        }
        function displaycuradjcomment3712(sText) {
        var divInfo = document.getElementById("curadjcomment3712");
        divInfo.innerHTML = sText;
        }