postids = ["1454", "1456", "1458", "1461", "1462", "1464", "1466", "1469", "1471", ""]; counts = ["1", "5", "2", "2", "0", "2", "8", "1", "6", ""]; 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 = ["1460", "1462", "1464", "1465", "1466", "1467", "1471", ""]; tbcounts = ["1", "3", "2", "2", "1", "1", "2", ""]; tbstart = 0; tbend = 8; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }