I can see that you are using Details DataPage. In this case change the following part of the code from:
var checkbox1 = document.getElementById('InsertRecordhandover')
var checkbox2 = document.getElementById('InsertRecordapproved')
var textfield1= document.getElementById('InsertRecordprocess_notes')
to this:
var checkbox1 = document.getElementById('EditRecordhandover')
var checkbox2 = document.getElementById('EditRecordapproved')
var textfield1= document.getElementById('EditRecordprocess_notes')
Also note that when using the Details DataPage, instead of Insert keyword, we should use Edit. Change also the naming of your fields accordingly.
var checkbox1 = document.getElementById('EditRecordleft_egypt')
var checkbox2 = document.getElementById('EditRecordfollow_checkbox')
var textfield1= document.getElementById('EditRecordwhen_to_follow')