postids = ["1628", "1629", "1630", "1631", "1634", "1635", "1636", "1637", "1638", "1640", "1641", "1642", "1643", "1644", "1645", ""]; counts = ["4", "1", "2", "1", "2", "2", "2", "2", "6", "2", "3", "1", "4", "5", "16", ""]; start = 0; end = 16; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1636", "1638", ""]; tbcounts = ["5", "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 }