postids = ["1257", "1259", "1261", "1262", "1263", "1265", "1266", "1267", "1269", "1271", ""]; counts = ["2", "14", "3", "1", "5", "1", "-1", "2", "-1", "4", ""]; start = 0; end = 11; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1261", "1262", "1263", "1264", "1265", "1268", "1269", "1270", "1271", ""]; tbcounts = ["1", "76", "1", "66", "2", "89", "73", "6", "298", ""]; tbstart = 0; tbend = 10; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }