postids = ["1859", "1860", "1861", "1862", "1863", "1864", "1865", "1866", "1867", "1868", "1869", "1870", "1871", "1872", "1873", "1874", "1876", ""]; counts = ["2", "3", "0", "5", "6", "1", "2", "2", "1", "4", "3", "3", "1", "3", "6", "2", "4", ""]; start = 0; end = 18; 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 }