Validates a credit card number based on the information given at
http://www.mint.com/blog/trends/credit-card-code-01202011/
var validCard=function(a,b,c,d) {a=a.split('').reverse();c=0;for(b in a){d=b%2!=0?a[b]2:a[b];if(d>=10)d=0|d/10+d%10;c+= d1} return c==70}
validCard('No Way I'm Putting Mine Here!!!') // returns true or false
It's a valid card if the total is divisible by 10, not just if it's equal to 70.