The functions on the page were updated to work. I think you would need a good understanding of writing javascript to customize the example.
The form in the example is dynamically created in the info window... but it would be a simplified sample for what you need. You are going to need a javascript expert if you can't understand the example.