Also, realize that you may have to clip the content in the text input, since (as I recall) setting the maxlength will not affect existing content. ---------------------------------------- From: Edwin Martin edwin at bitstorm.org DeWayne Crenshaw, > function changeLength() > { > if (document.myForm.radioButton[1].checked) {maxLength > =5} > else {maxLength =6} > } > > http://www.bitstorm.org/edwin/en/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070519/9a1fe789/attachment.htm>