The code on page 270 does not work as intended. Its puts the attribute 'checked' in all radio buttons. Surely what is required is to put the said attribute in only one radio button and clear it from the rest.
I can't get closeDialog() to work.
For both examples I have not, so far, been unable to discover why the given error code is in error.