postids = ["1993", "1994", "1995", "1996", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2006", "2007", "2008", "2009", "2010", "2011", "2012", ""]; counts = ["1", "4", "2", "2", "3", "1", "1", "2", "2", "5", "4", "3", "9", "4", "2", "1", "9", "1", ""]; start = 0; end = 19; 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 }