postids = ["1759", "1760", "1761", "1762", "1763", "1764", "1766", "1767", "1769", "1772", "1773", "1774", "1775", "1776", ""]; counts = ["1", "8", "0", "2", "1", "16", "2", "3", "0", "0", "8", "2", "5", "7", ""]; start = 0; end = 15; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1775", ""]; tbcounts = ["1", ""]; tbstart = 0; tbend = 2; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }