postids = ["1868", "1869", "1870", "1871", "1872", "1873", "1874", "1876", "1879", "1880", "1882", "1883", "1884", "1885", ""]; counts = ["4", "3", "3", "1", "3", "6", "2", "4", "3", "1", "5", "9", "3", "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 = ["1868", ""]; 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 }