function dump(obj) { var out = ''; for (var i in obj) { out += i + ": " + obj[i] + " "; } alert(out); }
dump(field.choices[i]);