postids = ["2085", "2086", "2087", "2088", "2089", "2090", "2091", "2092", "2093", "2094", "2100", "2101", "2103", "2104", ""]; counts = ["5", "3", "3", "1", "7", "2", "1", "1", "2", "1", "4", "3", "6", "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 }