postids = ["1772", "1773", "1774", "1775", "1776", "1777", "1778", "1779", "1780", "1781", "1782", "1784", "1785", "1789", ""]; counts = ["0", "8", "2", "5", "7", "3", "3", "6", "3", "7", "3", "5", "2", "0", ""]; 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 }