<script>
document.getElementById('ispen').addEventListener('change', function() {
this.checked ? document.getElementById('input_extrafl13').value = true : document.getElementById('input_extrafl13').value = false;
});
document.getElementById('isopen').addEventListener('change', function() {
this.checked ? document.getElementById('input_extrafl14').value = true : document.getElementById('input_extrafl14').value = false;
});
</script>