I really struggled with this myself but finally muddled through how to make this work. I used the java found here: http://www.interspire.com/content/articles/23/1/Using-Inline-Form-Validation
Also, if you want to see my page that is using this java to validate and processing with Bravenet check out www.rentawreck.com/franchise.html
Basically, you need to be very attentive to every character in the java script and modify it carefully. But, if you check you work as you go and are careful enough it actually works! Good luck - Jason