postids = ["1143", "1144", "1145", "1147", "1148", "1154", "1155", "1157", "1158", ""]; counts = ["5", "3", "2", "6", "8", "1", "1", "2", "4", ""]; 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 = ["1153", "1157", "1159", ""]; tbcounts = ["16", "2", "1", ""]; tbstart = 0; tbend = 4; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }