postids = ["2114", "2116", "2117", "2119", "2120", "2122", "2126", "2127", "2131", "2133", "2134", ""]; counts = ["1", "3", "4", "1", "2", "3", "1", "4", "4", "10", "10", ""]; start = 0; end = 12; 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 }