postids = ["1867", "1868", "1869", "1870", "1871", "1872", "1873", "1874", "1876", "1879", "1880", "1882", "1883", "1884", ""]; counts = ["1", "4", "3", "3", "1", "3", "6", "2", "4", "3", "1", "5", "9", "3", ""]; 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 = ["1867", "1868", ""]; tbcounts = ["3", "1", ""]; tbstart = 0; tbend = 3; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }