if (document.forms[0].PageType.value == "index" && currentSection == "Blogs") { tmpCount = Number(document.forms[0].Count.value); tmpStart = Number(document.forms[0].Start.value); tmpLast = tmpStart+tmpCount; tmpType = document.forms[0].PageType.value; tmpElements = viewResults.length - 1; // headline if (unescape(document.forms[0].Type.value) == "Subsections") { document.write('
'); document.write('

',currentSubsection.toUpperCase(),'

'); document.write(''); document.write('AddThis Social Bookmark Button'); var addthis_pub = 'rogertech'; document.write(''); document.write('
'); } else { //document.write('

',currentSection,'

'); document.write('
'); } if ( tmpLast > (tmpStart + tmpElements) ) { tmpLast = tmpStart + tmpElements; } for (var j = tmpStart; j < tmpLast; j++) { if (typeof(viewResults[j]) != 'undefined') { // check error for non-existing indexes if (unescape(viewResults[j].viewTitle) == "No items available.") { } else { //var storyLink=getStoryLink(currentSection.replace(/\s/ig,"_"),viewResults[j].viewDocID,(unescape(viewResults[j].viewTitle)).replace(/\s/ig,"+")); var storyLink=getStoryLink(unescape(viewResults[j].viewSection),viewResults[j].viewDocID,(unescape(viewResults[j].viewTitle)).replace(/\s/ig,"+")); document.write('
',unescape(viewResults[j].viewTitle),'
',unescape(viewResults[j].viewTitle),''); document.write('
'); document.write('
Posted by ',unescape(viewResults[j].viewArticleAuthorName),' on ',unescape(viewResults[j].viewPageDate),'
'); //formatDayDate(unescape(viewResults[j].viewPageDate)) document.write('
',unescape(viewResults[j].viewSummary),'
'); //document.write('
',getComments(viewResults[j].viewDocID),' comments about this story | permalink
'); document.write('
',getComments(viewResults[j].viewDocID),' comments about this story
'); } } } // next / previous document.write('

'); // previous if (tmpStart > 1) { document.write(''); } if (viewResults.length > tmpStart+(tmpCount-1)) { // next document.write(''); } document.write('
PreviousNext
'); } function getComments(id) { var thisXMLurl = "/wheels/tools/filter.js?readform&type=Talkback&cat=" + id + "&start=1&count=1000"; var numResults = 0; loadXMLDoc(thisXMLurl); if (tbResults[1].tbDocID != "") { return tbResults.length-1; } else { return 0; } } var xmlhttp2; function createxmlhttpRequest() { if (window.ActiveXObject) { xmlhttp2 = new ActiveXObject("Microsoft.xmlhttp"); } else { xmlhttp2 = new XMLHttpRequest(); } } function loadXMLDoc(url) { // code for IE if (window.ActiveXObject) { xmlhttp2=new ActiveXObject("Microsoft.xmlhttp") if (xmlhttp2) { xmlhttp2.onreadystatechange= function () { if (xmlhttp2.readyState==4) { // if "OK" if (xmlhttp2.status==200) { eval(xmlhttp2.responseText); } else { alert("Problem retrieving XML data:" + xmlhttp2.statusText) } } } xmlhttp2.open("GET",url,false) xmlhttp2.send() } } // code for Mozilla, etc. else if (window.XMLHttpRequest) { xmlhttp2=new XMLHttpRequest() //xmlhttp2.onreadystatechange=state_Change xmlhttp2.onload = function () { eval(xmlhttp2.responseText); } xmlhttp2.open("GET",url,false) xmlhttp2.send(null) } }