postids = ["989", "999", "1000", "1001", ""]; counts = ["1", "1", "3", "4", ""]; start = 0; end = 5; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["988", "993", "1003", ""]; tbcounts = ["1", "309", "2", ""]; 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 }