postids = ["1439", "1440", "1443", "1445", "1446", "1447", "1448", "1453", "1454", "1456", ""]; counts = ["2", "8", "1", "2", "4", "3", "3", "9", "1", "5", ""]; start = 0; end = 11; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1440", "1450", ""]; tbcounts = ["5", "4", ""]; 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 }