Hide and show parts of forms when appropriate