Credit Card Number Validation

Hi, I am looking for a javascript to validate a credit card number before my form is submitted… I was wondering if any of you guys has used one like this before…

This was supposed to go to the Client Side forum… I dont know why it ended up in the Server Side forum… anyways… your help is appreciated.