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