if ((document.getElementById('position').value != '01') && (document.getElementById('position').value != '04') && (document.getElementById('CkbxSecondment').checked)) {
alert('The position of the employee is not at the Partner level. Only Active Partners can go on secondment.');
divElement.style.display = 'none'; // hides
document.getElementById('CkbxSecondment').checked = false;
}
Error occurs at:
((document.getElementById('position').value != '01') cannot read property 'value' of null)