I have posted the answer below. I think I just needed to walk away from it for a weekend and then come back to it. Below is the code I used to set the field value:
var msg = XSP.prompt("Enter (optional) brief message to include in request:");
var AprReason4 = document.getElementById("#{id:aprReason41}");
AprReason4.value=msg;