postids = ["1231", "1235", "1236", "1237", "1239", "1242", "1243", "1245", "1246", ""]; counts = ["4", "4", "2", "3", "2", "1", "4", "-1", "0", ""]; start = 0; end = 10; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1230", "1232", "1234", "1235", "1236", "1238", "1240", "1242", "1243", "1244", ""]; tbcounts = ["167", "3", "131", "141", "141", "311", "4", "1", "2", "233", ""]; tbstart = 0; tbend = 11; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }