// JavaScript Document

function newsRSS() {
	//alert('12131313');
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', '/rss.php', true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
		
        if (self.xmlHttpReq.readyState == 4) {
			//alert(self.xmlHttpReq.responseText);
			if(self.xmlHttpReq.responseText){
			document.getElementById("rssfeed").innerHTML=self.xmlHttpReq.responseText;}
			else
			{
				document.getElementById("rssfeed").innerHTML="<ul style='list-style-image:url(/images/cat-li.gif)'><li>IBI launches i.model, A homology modelling server.</li><li>IBI launches CISAA v2.</li><li>IBI launches PIPE.</li><li>IBI launches Drug-INSTAR.</li><li>IBI launches CROCP.</li><li>WHO adresses handling of H1N1 at council of Europe meeting.</li></ul>";
			}
						//alert(self.xmlHttpReq.responseText);

        }
    }
    self.xmlHttpReq.send();
}


