postids = ["1112", "1113", "1114", "1115", "1123", "1124", "1126", "1127", ""]; counts = ["3", "1", "2", "5", "1", "2", "8", "7", ""]; 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 = ["1113", "1116", "1126", "1127", ""]; tbcounts = ["1", "1", "136", "1", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }