postids = ["1880", "1882", "1883", "1884", "1885", "1886", "1887", "1888", "1890", "1891", "1892", "1893", "1895", "1897", "1898", ""]; counts = ["1", "5", "9", "3", "2", "2", "5", "4", "3", "1", "1", "3", "2", "2", "5", ""]; start = 0; end = 16; 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 }