<input id="puF4" type="text" value="0" />
<input id="check" type="checkbox" />
<script>
var txt = document.getElementById('puF4'), check = document.getElementById('check');
check.onchange = function() {
txt.value = (this.checked) ? 1 : 0;
};
</script>