function getXmlHttpObject(){	var xmlHttp=null;	try  	{  	// Firefox, Opera 8.0+, Safari  		xmlHttp=new XMLHttpRequest();  	}	catch (e)  	{  	// Internet Explorer	  	try	    {	    	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");	    }	  	catch (e)	    {	    	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");	    }
  	}	return xmlHttp;}

function readRSS(url, itemCount, id)
{
	var xmlHttp=getXmlHttpObject();	xmlHttp.onreadystatechange=function() {		if (xmlHttp.readyState==4)		{ 			var xmlobject = xmlHttp.responseXML;			// get a reference to the root-element "rss"
			var root = xmlobject.getElementsByTagName("rss")[0];
			// get reference to "channel" element
			var channels = root.getElementsByTagName("channel");
			// get title
			var title = channels[0].getElementsByTagName("title")[0].firstChild.nodeValue;

			var html = '<div id="rss_feed">\n';
			html += '<div class="title">' + title + '</div>\n';
	
			// now get all "item" tags in the channel
			var items = channels[0].getElementsByTagName("item");
			
			for(var i=0; i<itemCount; i++){	
				title = items[i].getElementsByTagName("title")[0].firstChild.nodeValue;
				var link = items[i].getElementsByTagName("link")[0].firstChild.nodeValue;
				var description = items[i].getElementsByTagName("description")[0].firstChild.nodeValue;
				html += '<div class="item">\n';
				html += '<a class="title" href=' + link + '>' + title + '</a>\n';
				html += '<p>' + description + '</p>\n';
				html += '</div>\n';
			}
			html += '</div>\n';
	
			document.getElementById(id).innerHTML = html;
		}
	};
	
	xmlHttp.open("GET",url,true);	xmlHttp.send(null);	
}
