postids = ["1757", "1758", "1759", "1760", "1761", "1762", "1763", "1764", "1766", "1767", "1769", "1772", "1773", "1774", ""]; counts = ["2", "2", "1", "8", "0", "2", "1", "16", "2", "3", "0", "0", "8", "2", ""]; 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 = [""]; tbcounts = [""]; tbstart = 0; tbend = 1; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }