I found I can get this to work by using an outside editor to change the onload statement in the non editable template area.
The question is, can this be done a better way so that if the template is updated, the edits to files with a modified onload statements do not have to be redone each time?