Can't figure out this problem

Can't figure out this problem

Hi there,

I'm not that great with jQuery, but i've made a script and the goal of the script is to  reset certain form elements to their intial state, which is triggerd by a radiogroup or checkboxgroup within the same form. 

The script i have so far is:  http://jsfiddle.net/hv6zP/ 

The script works and resets the form elements, within the array, to their initial state, but when you click on the second "test" button for a second or third time, all of the form elements get hidden. I don't want that to happen, but i can't figure out why it happens, because my jQuery knowledge isn't that great. 

So i'm wondering if anyone can help me figure this out and probably make it work.

Thanks in advance!