postids = ["1475", "1476", "1477", "1478", "1480", "1482", "1483", "1484", "1485", "1487", "1488", "1491", "1493", ""]; counts = ["1", "12", "1", "1", "7", "2", "2", "5", "2", "2", "2", "8", "1", ""]; start = 0; end = 14; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1476", "1478", "1482", "1486", "1487", "1489", "1492", ""]; tbcounts = ["2", "5", "2", "2", "3", "1", "4", ""]; 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 }