postids = ["1789", "1790", "1794", "1796", "1798", "1799", "1801", "1803", "1805", ""]; counts = ["0", "1", "4", "3", "1", "1", "6", "3", "8", ""]; start = 0; end = 10; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = [""]; tbcounts = [""]; tbstart = 0; tbend = 1; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }