you could use code similar to that used in ecart.
check for a form 'submit' button being pressed.
if true, check for the radio button value.
if radio = yes, do the validation check,
if ok, process the form
if not ok, display a message
if radio = no, process the form