postids = ["1293", "1298", "1299", "1301", "1304", "1305", "1306", ""]; counts = ["7", "8", "1", "1", "3", "7", "6", ""]; start = 0; end = 8; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1295", "1299", "1300", "1301", "1303", "1305", "1307", ""]; tbcounts = ["4", "100", "116", "119", "6", "306", "20", ""]; 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 }