postids = ["2175", "2177", "2178", "2179", "2180", "2181", "2182", "2183", "2184", "2187", "2194", ""]; counts = ["3", "2", "21", "7", "2", "1", "1", "16", "3", "1", "4", ""]; 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 }