postids = ["2090", "2091", "2092", "2093", "2094", "2100", "2101", "2103", "2104", "2105", "2108", ""]; counts = ["2", "1", "1", "2", "1", "4", "3", "6", "1", "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 }