var resObjekt_login_news; if(navigator.appName.search("Microsoft") > -1){ resObjekt_login_news = new ActiveXObject("MSXML2.XMLHTTP"); } else { resObjekt_login_news = new XMLHttpRequest(); } function update_login_news() { if (document.getElementById("login_news_news")) { resObjekt_login_news.open('get', 'scripts/update_login_news.php', true); resObjekt_login_news.onreadystatechange = handleResponse_login_news; resObjekt_login_news.send(null); } } function handleResponse_login_news(){ if(resObjekt_login_news.readyState == 4) { var login_news_response = resObjekt_login_news.responseText //alert(login_news_response); var login_news_result = login_news_response.split("#$#"); if (login_news_result.length == 3) { document.getElementById("login_news_news").innerHTML = login_news_result[0]; document.getElementById("login_news_tasks").innerHTML = login_news_result[1]; document.getElementById("login_news_tools").innerHTML = login_news_result[2]; } } }