postids = ["1638", "1640", "1641", "1642", "1643", "1644", "1645", "1648", "1650", "1651", "1653", "1654", "1655", ""]; counts = ["6", "2", "3", "1", "4", "5", "16", "3", "9", "2", "1", "3", "3", ""]; 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 = ["1638", ""]; 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 }