Do the same at the bottom of the file. Do not fiddle around with text that FAQ manager creates. After you finish configuring these 2 files. When you call the script it saves the top and the bottom of the html, grabs the rest of the content, splits it to groups, questions and answers and represent for you in GUI so you can edit it. We remember the top and bottom since we will need them back when we will write back the modified document.
Next step is to parse the body and extract all groups, questions and answers.
The extracted data is stored on the disk using the unique string to name the file. We pass that file name as a hidden parameter from form to form. So you can always jump back to one of the prior versions. Ofcourse you can change that value. It's well commented.