postids = ["1249", "1250", "1251", "1254", "1257", "1259", "1261", "1262", ""]; counts = ["2", "4", "2", "6", "2", "14", "3", "1", ""]; 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 = ["1247", "1248", "1254", "1255", "1261", "1262", ""]; tbcounts = ["122", "127", "10", "276", "1", "76", ""]; tbstart = 0; tbend = 7; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }