postids = ["1487", "1488", "1491", "1493", "1496", "1497", "1498", "1500", "1502", ""]; counts = ["2", "2", "8", "1", "1", "2", "1", "2", "3", ""]; 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 = ["1486", "1487", "1489", "1492", "1495", "1496", ""]; tbcounts = ["2", "3", "1", "4", "5", "2", ""]; 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 }