Why are the hidden form elements put into a div with style display: none ?
This might sound funny because a hidden element is obviously already hidden, but the simple reason for this is the XHTML validity. XHTML allows input elements only within block elements. And as form is not a block element, but div is a block element, this trick is used to make the output XHTML valid.