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