A script for collapsing or expanding a section in a form

Hi All

Does anyone happen to have a script for collapsing a section in a form or expanding it?

My form is a bit long and i want some sections to be collapsible or expandable for data input?

Thank you