Web form - show additional fields if user sets popup to Yes

I'd like to have some fields on a basic HTML form (as generated by the PP reporting components) show up only if a user chooses Yes on a Text Box or a Radio Button entry. For example, I might have a "NHP" field on the form. If the user sets this field to "Yes" then two more text boxes "NHP Study" and "estimated study date" appear. I assume that this can be done by injecting some Javascript into the PP HTML form. Is there a demo protocol which shows how this can be done?