Why does the following code always return NaN in NS4 no matter what the value of the tmpm element is?

Code:
var theMonth = parseInt(document.goToMonth.tmpm.value)
What would be the proper way to do this in NS4?

Thanks,
Goof