postids = ["2052", "2053", "2054", "2055", "2056", "2057", "2058", "2060", "2062", "2063", "2064", "2066", "2068", "2070", ""]; counts = ["2", "3", "1", "1", "3", "2", "2", "3", "3", "3", "1", "2", "2", "1", ""]; start = 0; end = 15; 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 }