onsectionclick event (Accordion Layout)
The onsectionclick event is activated when an accordion section is clicked.  The special variable section can indicate the index of the section that was clicked.  The first section is index 0, the second section is index 1, and so on.  If the JavaScript expression evaluates to false, the section will not be expanded.
Example:
The following code requires the user to fill out the information in the first section before allowing them to expand the second section.
onsectionclick:Â processSectionClick(section);
function processSectionClick(section) {
if (section == 1) {
if (get("FIELD1") == "" || get("FIELD2") == "") {
alert("You must fill out information in the first section of the accordion before expanding the second section.");
return false;
}
}
return true;
}