postids = ["1826", "1827", "1828", "1829", "1831", "1832", "1833", "1834", "1835", "1837", "1838", "1839", "1841", "1842", ""]; counts = ["2", "2", "1", "1", "0", "1", "0", "3", "3", "1", "7", "1", "0", "3", ""]; start = 0; end = 15; 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 }