Fixed bug with the submit - if pressed Enter then it was doing a plain submit without a dispatch parameter. Added the parameter to the main form definition and changed the validate routine to return a boolean. The submission is now triggered by s doSubmit on the body tag.