postids = ["1611", "1612", "1613", "1618", "1619", "1620", "1625", "1628", ""]; counts = ["13", "1", "1", "2", "2", "2", "4", "4", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1618", "1619", "1624", ""]; tbcounts = ["1", "3", "4", ""]; tbstart = 0; tbend = 4; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }