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