function CheckChatStatus(rid,zeit) {
	
	
        var xmlHttp = false;

        if (window.XMLHttpRequest)
        {
            xmlHttp = new XMLHttpRequest();
        	if (xmlHttp.overrideMimeType)
        	{
        		xmlHttp.overrideMimeType('text/xml');
        	}
        } else if (window.ActiveXObject)
        { // IE
            try
            {
            	xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e)
            {
                try {
                	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch (e)
                {}
            }
        	if (!xmlHttp) {
            	alert('Sorry, das hat net geklappt...');
                return false;
            }
        }

       // xmlHttp.open('GET', '../tools/getinfos.php?t=4&q='+field.value, true);
	    xmlHttp.open('GET', '../tools/getinfos.php?t=6&rid='+ rid +'&zeit='+ zeit, true);
    	xmlHttp.onreadystatechange = function ()
    	{
            if (xmlHttp.readyState == 4) {
                document.getElementById('cstatus').innerHTML = xmlHttp.responseText;
				
    		}
    		else
    		{
    		 //   document.getElementById('cstatus').innerHTML = 'versuche Verbindung herzustellen...';
    		}
    	};
    	xmlHttp.send(null);		
}