postids = ["2233", "2234", "2235", "2237", "2238", "2239", "2240", "2241", "2244", "2247", "2249", "2250", "2251", "2252", "2253", ""]; counts = ["3", "7", "7", "2", "11", "1", "8", "1", "1", "1", "1", "4", "2", "2", "1", ""]; 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 }