I am including a zip file that contains the conditional validation example from the documentation only.
There is validation applied to the on blur events of the check box and the tell a friend text box, and validation attached to the onsubmit event of the form.
hope this helps.