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