postids = ["1678", "1680", "1682", "1683", "1686", "1687", "1688", "1689", "1690", "1691", "1692", "1693", "1695", "1696", ""]; counts = ["3", "2", "1", "3", "4", "3", "1", "6", "2", "4", "1", "1", "1", "1", ""]; 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 = ["1680", "1691", ""]; 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 }