postids = ["2295", "2296", "2298", "2299", "2300", "2304", "2305", "2306", "2307", "2309", "2314", "2315", ""]; counts = ["2", "9", "2", "2", "4", "1", "1", "3", "1", "1", "1", "4", ""]; start = 0; end = 13; 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 }