postids = ["1986", "1987", "1989", "1990", "1993", "1994", "1995", "1996", "1998", "1999", "2000", "2001", "2002", "2003", "2004", ""]; counts = ["0", "1", "4", "3", "1", "4", "2", "2", "3", "1", "1", "2", "2", "5", "4", ""]; start = 0; end = 16; 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 }