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
tbh I'd given up on this when I saw the luhn10 algorithm had already been done here. But thanks for patching it anyway! :)