Так?
<script type="text/javascript">
window.onload = function () {
var inputs = document.getElementsByTagName('input'),
textinput = inputs[0];
for (i = 1; i < inputs.length; i++) {
inputs[i].onclick = function () {
if (this.checked) textinput.value = this.id;
}
}
}
</script>
<input type="text"/><br/><input type="checkbox" id="checkbox1"/><input type="checkbox" id="checkbox2"/><input type="checkbox" id="checkbox3"/>