I have a form with a standard reset button coded thusly:
Trouble i
Clearing forms is a bit tricky and not as simple as it looks.
Suggest you use the jQuery form plugin and use its clearForm or resetForm functionality. It takes care of most of the corner cases.