var xmlhttp function loadXMLDoc(url) { xmlhttp=null; // code for Mozilla, etc. if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest(); // code for IE else if (window.ActiveXObject) xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") if (xmlhttp!=null) { xmlhttp.onreadystatechange=state_Change; xmlhttp.open("GET",url,true); xmlhttp.send(null); } else { alert("Your browser does not support XMLHTTP.") } } function state_Change() { if (xmlhttp.readyState==4) document.getElementById('titles').innerHTML=findTitles(xmlhttp.responseText); } function findTitles(source) { var titles = ""; for (var i = 0; source.indexOf("

") != -1 && i < 7; i+=2) { var start = source.indexOf("

"); var end = source.indexOf("

"); var title = ""); var date = source.substring(start2+11, start2+31); titles += "
  • " + title + "\n"; titles += "" + date + "
  • \n"; source = source.slice(end+4, source.length); } return titles; }