postids = ["1538", "1540", "1541", "1542", "1543", "1544", "1546", "1555", ""]; counts = ["7", "2", "2", "3", "5", "4", "2", "7", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1546", "1549", "1550", "1554", "1555", ""]; tbcounts = ["1", "3", "3", "2", "1", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }