postids = ["1618", "1619", "1620", "1625", "1628", "1629", "1630", "1631", "1634", ""]; counts = ["2", "2", "2", "4", "4", "1", "2", "1", "2", ""]; start = 0; end = 10; 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 }