Trying to hide/show some form field based on select choice. It works just fine in my test setup. In the real world example I have to add the onchange event to my select box with
Code:
selectBoxId1.onchange(hideField(selectBoxId1,selectBoxValue1,hiddenBoxId1));
For some reason when doing it this way the function only runs when the page is refreshed. Any ideas on how I can solve this?

in the head
Code:
<script type="text/javaScript">
...