postids = ["1123", "1124", "1126", "1127", "1129", "1131", "1132", ""]; counts = ["1", "2", "8", "7", "11", "3", "3", ""]; 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 = ["1126", "1127", "1131", "1132", "1133", ""]; tbcounts = ["136", "1", "3", "5", "270", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }