function loadRSS(title, server_url, rss_file, div_id, rss_url, more_url, maxRecords) {
   var request =  zXmlHttp.createRequest();
   request.open("POST", server_url + rss_file, true);
   request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   request.onreadystatechange = function() {
      if (request.readyState == 4 && request.status == 200) {
         if (request.responseText) {
            document.getElementById(div_id).innerHTML = parseRSS(title, request.responseXML, server_url, rss_url, more_url, maxRecords);
         }
      }
   }
   request.send(null);
}

function parseRSS(title, rssxml, server_url, rss_url, more_url, maxRecords) {
	var htmlText = "";//"<div style='text-align:left; margin:5px 9px 10px 9px;'><b>" + title + "</b></div>";
	if (maxRecords > rssxml.getElementsByTagName('item').length) {
		maxRecords = rssxml.getElementsByTagName('item').length;
	}
	for (i = 0; i < maxRecords; i++) {
		 title       = rssxml.getElementsByTagName('item')[i].getElementsByTagName('title')[0].childNodes[0].nodeValue;
		 link_parts  = rssxml.getElementsByTagName('item')[i].getElementsByTagName('link')[0].childNodes[0].nodeValue.split("/");
		 link        = more_url + link_parts[link_parts.length - 2];
		 news_description = rssxml.getElementsByTagName('item')[i].getElementsByTagName('description')[0].childNodes[0].nodeValue;
		 
		 pubDate     = rssxml.getElementsByTagName('item')[i].getElementsByTagName('pubDate')[0].childNodes[0].nodeValue;
		 htmlText += "<div class='news_header'>";
		 htmlText += "<br><a href='" + link + "'>" + title + "</a><br><br>" + pubDate;
		 htmlText += "</div>";
		 htmlText += "<div class='news_description'>";
		 htmlText += news_description;
		 htmlText += "<br><br>	</div>";
	}
	htmlText += "<div class='news_more_links'>";
	htmlText += "<a href='" + more_url + "'>More</a> | <a href='" + rss_url + "'><img alt='RSS' src='" + server_url + "/media/img/rss.png' align='bottom' /></a>";
	htmlText += "</div>";
	return htmlText;
}