Check Charlie's example again - you also need the return in the onsubmit attribute.
Also, just a reminder to also perform these same validations on the server side. (JS validation is only for better user interface, it doesn't provide the security/integrity that server-side checks give.) Oh, and investigate jQuery - it'll make your JS code much more concise. :) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/javascript/message.cfm/messageid:6301 Subscription: http://www.houseoffusion.com/groups/javascript/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/javascript/unsubscribe.cfm
