postids = ["1496", "1497", "1498", "1500", "1502", "1504", "1505", "1509", "1510", "1511", ""]; counts = ["1", "2", "1", "2", "3", "4", "4", "6", "3", "1", ""]; start = 0; end = 11; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1495", "1496", "1508", "1509", ""]; tbcounts = ["5", "2", "4", "1", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }