postids = ["948", "952", "953", "954", "957", "958", ""]; counts = ["4", "4", "3", "5", "5", "3", ""]; 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 = ["944", "958", "959", ""]; tbcounts = ["292", "1", "5", ""]; 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 }