postids = ["1835", "1837", "1838", "1839", "1841", "1842", "1843", "1845", "1846", "1847", "1849", "1850", "1852", ""]; counts = ["3", "1", "7", "1", "0", "3", "0", "3", "3", "3", "1", "3", "0", ""]; start = 0; end = 14; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1853", ""]; tbcounts = ["1", ""]; tbstart = 0; tbend = 2; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }