postids = ["1250", "1251", "1254", "1257", "1259", "1261", "1262", "1263", "1265", ""]; counts = ["4", "2", "6", "2", "14", "3", "1", "5", "1", ""]; start = 0; end = 10; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1254", "1255", "1261", "1262", "1263", "1264", "1265", ""]; tbcounts = ["10", "276", "1", "76", "1", "66", "2", ""]; tbstart = 0; tbend = 8; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }