postids = ["1429", "1430", "1434", "1435", "1437", "1438", "1439", "1440", "1443", "1445", "1446", "1447", ""]; counts = ["9", "17", "1", "3", "3", "0", "2", "8", "1", "2", "4", "3", ""]; start = 0; end = 13; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1430", "1440", ""]; tbcounts = ["1", "5", ""]; 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 }