postids = ["1453", "1454", "1456", "1458", "1461", "1462", "1464", "1466", ""]; counts = ["9", "1", "5", "2", "2", "0", "2", "8", ""]; start = 0; end = 9; 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", "1462", "1464", "1465", "1466", ""]; tbcounts = ["4", "1", "3", "2", "2", "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 }