<!-- Begin if (document.forms[0].PageType.value == "index") { 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; // check that our loop isn't trying to display more results than actually exist if ( tmpLast > (tmpStart + tmpElements) ) { tmpLast = tmpStart + tmpElements; } thisSection = document.forms[0].Section.value; nospaceSection = thisSection.replace(/%20/ig, "+"); //document.write('<br><div class="headline">',unescape(document.forms[0].Headline.value),'</div><br>'); if (unescape(document.forms[0].Subsection.value)!="") { document.write('<br><div class="headline">',unescape(document.forms[0].Subsection.value),'</div><br>'); } else { document.write('<br><div class="headline">',unescape(document.forms[0].Section.value),'</div><br>'); } document.write('<div class="intro">',unescape(document.forms[0].IntroText.value),'</div><br>'); 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.") { document.write('<div class=\"bodyhead\">',unescape(viewResults[j].viewTitle),'</div>'); document.write('<div>',unescape(viewResults[j].viewSummary),'</div><br>'); } else { // check not a related article if (viewResults[j].viewDocID == viewResults[j].viewParentID) { // display date on News and Customer Success pages if (document.forms[0].Section.value == "News") { document.write('<div class=\"date\">',unescape(viewResults[j].viewPageDate),' | ',getEnd(unescape(viewResults[j].viewSection),'>'),'</div>'); } else { document.write('<div class=\"date\">',getFront(unescape(viewResults[j].viewSection),'>'),' | ',getEnd(unescape(viewResults[j].viewSection),'>'),'</div>'); } document.write('<div class="title"><a class=\"bodyhead\" href=\"articleIDs/', unescape(viewResults[j].viewDocID), '?open\">',unescape(viewResults[j].viewTitle),'</a>'); document.write('</div>'); document.write('<div class="normal">',unescape(viewResults[j].viewSummary),'</div><br>'); } } } } } else{} // End -->