canClose example
The following canClose event handler fires the form’s row-level validation method:
function form_canClose( )
return form.recValid( ) // If row is bad, don't close