postids = ["1286", "1288", "1293", "1298", "1299", "1301", ""]; counts = ["0", "1", "7", "8", "1", "1", ""]; start = 0; end = 7; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1287", "1288", "1289", "1290", "1295", "1299", "1300", "1301", "1303", ""]; tbcounts = ["140", "141", "536", "135", "4", "100", "116", "119", "6", ""]; tbstart = 0; tbend = 10; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }