postids = ["1509", "1510", "1511", "1513", "1514", "1516", "1517", "1518", "1522", "1524", "1525", ""]; counts = ["6", "3", "1", "1", "1", "2", "1", "1", "7", "2", "3", ""]; 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 = ["1508", "1509", "1513", "1518", "1521", "1525", ""]; tbcounts = ["4", "1", "1", "1", "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 }