if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
// get the file from the local file
xmlhttp.open("GET","javascripts/dashdrum_rss.php",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML; 

document.write('<div class="rss-box">');
document.write('<ul class="rss-items">');
var x=xmlDoc.getElementsByTagName("item");


// you might want to limit this for faster loading
// change i<x.length to i< n, where n is the number of items you want
// currently pulls everything. 

for (i=0;i<5;i++)
  { 
  document.write('<li class="rss-item">');
  document.write('<a class="rss-item" href="');
  document.write(x[i].getElementsByTagName("link")[0].childNodes[0].nodeValue);
  document.write('">');
  document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
  document.write("</a>");
 // document.write("<br />");
 // document.write(x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
  document.write("</li>");
  }
document.write("</ul>");
document.write("</div>");



