postids = ["1655", "1656", "1657", "1658", "1661", "1662", "1663", "1664", "1667", "1668", "1669", "1671", "1672", ""]; counts = ["3", "2", "5", "7", "2", "6", "5", "1", "3", "1", "1", "2", "11", ""]; 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 = ["1672", ""]; 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 }