postids = ["2031", "2032", "2033", "2034", "2036", "2037", "2039", "2041", "2043", "2045", "2049", ""]; counts = ["10", "7", "2", "1", "3", "2", "1", "6", "4", "1", "3", ""]; 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 }