postids = ["1962", "1963", "1964", "1967", "1968", "1969", "1970", "1972", "1973", "1975", "1978", "1979", "1981", ""]; counts = ["2", "2", "5", "7", "3", "1", "4", "7", "2", "1", "4", "4", "0", ""]; 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 }