postids = ["1546", "1555", "1557", "1559", "1562", ""]; counts = ["2", "7", "6", "3", "0", ""]; start = 0; end = 6; 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", "1556", ""]; tbcounts = ["1", "3", "3", "2", "1", "3", ""]; 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 }