postids = ["1618", "1619", "1620", "1625", "1628", "1629", "1630", "1631", "1634", "1635", "1636", ""]; counts = ["2", "2", "2", "4", "4", "1", "2", "1", "2", "2", "2", ""]; 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 = ["1618", "1619", "1624", "1636", ""]; tbcounts = ["1", "3", "4", "5", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }