postids = ["1443", "1445", "1446", "1447", "1448", "1453", "1454", "1456", "1458", ""]; counts = ["1", "2", "4", "3", "3", "9", "1", "5", "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 = ["1450", "1460", ""]; tbcounts = ["4", "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 }