postids = ["1237", "1239", "1242", "1243", "1245", "1246", "1249", "1250", "1251", ""]; counts = ["3", "2", "1", "4", "-1", "0", "2", "4", "2", ""]; 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 = ["1238", "1240", "1242", "1243", "1244", "1247", "1248", ""]; tbcounts = ["311", "4", "1", "2", "233", "122", "127", ""]; tbstart = 0; tbend = 8; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }