var http = getHTTPObject(); // We create the HTTP Object 


function getHTTPObject() { 
	var xmlhttp; 
		if(window.XMLHttpRequest){ 
		xmlhttp = new XMLHttpRequest(); 
		} 
		else if (window.ActiveXObject){ 
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
		}
		if (!xmlhttp){ 
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
		}     
return xmlhttp; 
} 

function getnews() {
oddlist = new Array();
var url = "rssnews.php?rnd="+new Date().getTime();
http.open("GET", url, true); 
http.onreadystatechange = handleHttpResponse;
http.send(null); 
}


function handleHttpResponse() {

 if (http.readyState == 4) { 
  if(http.status==200) {
    document.getElementById('infobox').innerHTML='<img src="media/img/loading.gif" />'; 
	document.getElementById('infobox').style.display='block';
    document.getElementById('infobox').innerHTML = http.responseText;

  }
 }
}