function getInfo(param) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'info.php', true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200)
document.getElementById('holder').innerHTML = xmlhttp.responseText;
}
}
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlhttp.send(null);
}
window.onload = function(){
window.setInterval(getInfo, 2000);
}