I am trying to piece together a bit of form validation. I can not get the two scripts to work together via onsubmit. CardVal works onclick and DataVal works onsubmit.

1. first i tried to call the CheckCardNumber(this.form) from inside the DataValidation.js after it returned true. Is that even possible? I could not figure it out...

2. i tried inserting this into the <form> tag:
onsumbit="return (subform_validator(this) && CheckCardNumber(this.form));"
is that even possible? my javascript skills are not exactly expert so forgive me if i have overlooked something extremely simple...

DataValidation.js
http://www.simeons.net/twtdesigns/ht...aValidation.js
CardValidation.js
http://www.simeons.net/twtdesigns/ht...dValidation.js
Form
http://www.simeons.net/twtdesigns/html05/start.htm

thanks,
Simeon