Validation - Credit Card Validation

Look at http://en.wikipedia.org/wiki/Luhn_algorithm.

It's a good screen against flat-out invalid numbers. After that, it's
between you and your credit card payment acceptor.

active merchant comes w/ somr luhn javascript validation too