function loadWorkgroupStatus() {
    var xhr;

    if (window.XMLHttpRequest)  {
        xhr = new XMLHttpRequest();
    } else {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }

    xhr.onreadystatechange = function() {
        if (xhr.readyState == 4) {
            if(xhr.status  == 200) {
                var doc = xhr.responseXML;
                var element = doc.getElementsByTagName('workgroup').item(0);          
                var workgroupStatus = element.getAttribute('status');
                if (workgroupStatus == 'open') {
                    renderOnline();
                } else {
                    renderOffline();
                }
            }
        }
    };

    xhr.open('GET', 'https://www.sluitallesaan.nl/thalantyr/WorkgroupSatusXMLServlet?workgroup=support', true);
    xhr.send(null);    
}

function popup(URL)
{
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500');");
}
