postids = ["2276", "2277", "2278", "2281", "2282", "2283", "2284", "2286", "2287", "2289", "2291", "2294", "2295", "2296", "2298", ""]; counts = ["2", "3", "1", "2", "5", "1", "5", "1", "1", "1", "3", "2", "2", "9", "2", ""]; 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 }