postids = ["2043", "2045", "2049", "2050", "2051", "2052", "2053", "2054", "2055", "2056", "2057", "2058", "2060", ""]; counts = ["4", "1", "3", "2", "2", "2", "3", "1", "1", "3", "2", "2", "3", ""]; start = 0; end = 14; 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 }