25



// Credit Card Validation Javascript
// copyright 12th May 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

function validateCreditCard(s) {
function cardval(s) {
// remove non-numerics
var v = "0123456789";
var w = "";
for (i=0; i < s.length; i++) {
x = s.charAt(i);
if (v.indexOf(x,0) != -1)
w += x;
}
// validate number
j = w.length / 2;
if (j < 6.5 || j > 8 || j == 7) return false;
k = Math.floor(j);
m = Math.ceil(j) - k;
c = 0;
for (i=0; i<k; i++) {
a = w.charAt(i*2+m) * 2;
c += a > 9 ? Math.floor(a/10 + a%10) : a;
}
for (i=0; i<k+m; i++) c += w.charAt(i*2+1-m) * 1;
return (c%10 == 0);
}

Post a Comment

  1. Be that as it may, even in this colossally aggressive industry, there are still just two principle sorts of card accessible - the Visa card and the MasterCard. buy dumps

    ReplyDelete
  2. Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also paypal vcc

    ReplyDelete
  3. I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing. DIY Credit Repair Kit

    ReplyDelete
  4. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 컬쳐랜드 현금화

    ReplyDelete
  5. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Hacking Forum

    ReplyDelete
  6. At the point when you make buy at any dealer you sign a little receipt recognizing you will pay same add up to your credit card organization.
    credit card debt relief

    ReplyDelete
  7. A decent option to Paypal, Netletter VCC offers a prepaid ace card and joining is for nothing out of pocket. Use costs per exchange. vcc for paypal

    ReplyDelete
  8. Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. best credit monitoring service free

    ReplyDelete
  9. before you buy some very expensive SEO Tools, always look for a review first before you invest on them; web design company los angeles

    ReplyDelete
  10. I’ve been exploring for a bit for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this web site. Reading this information So i’m happy to convey that I have a very good uncanny feeling I discovered exactly what I needed. I most certainly will make sure to don’t forget this website and give it a glance on a constant basis. design firms los angeles

    ReplyDelete
  11. Needed to compose you a tiny note to finally thank you very much yet again for your personal splendid methods you have discussed above. It is strangely open-handed with people like you to provide publicly all that a number of people would have marketed as an electronic book to generate some bucks for their own end, primarily now that you could possibly have tried it if you ever wanted. These inspiring ideas likewise acted like a fantastic way to know that the rest have the same dreams really like my personal own to see a whole lot more concerning this problem. I’m sure there are thousands of more enjoyable times in the future for many who check out your blog. top web design companies

    ReplyDelete
  12. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. 정보이용료 현금화

    ReplyDelete
  13. Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. marketing1on1 backlinks

    ReplyDelete
  14. This blog is really great. The information here will surely be of some help to me. Thanks!. marketing 1on1

    ReplyDelete
  15. This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. 정보이용료 현금화

    ReplyDelete
  16. A report gave by Deloitte in 2011 uncovered that the UK's biggest organizations were perched on £60 billion of inefficient working capital. Financial planner

    ReplyDelete
  17. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks 정보이용료 현금화

    ReplyDelete
  18. All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks 소액결제 현금화

    ReplyDelete
  19. That is really nice to hear. thank you for the update and good luck. SEO Agentur Frankfurt

    ReplyDelete
  20. Your credit score is a significant in any money related exchange that you make or expect making in future. So it's acceptable you realize what precisely your score is, comprehend its importance and figure out how you can improve it if it's bad enough. card dumps

    ReplyDelete
  21. For professional woodworking and carpentry, do NOT rely on the traditional tools but trust these best table saw if you love your job! SEO Agency In Melbourne

    ReplyDelete
  22. This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. Dofollow SEO Backlink blog comments

    ReplyDelete
  23. This substance is composed exceptionally well. Your utilization of arranging while mentioning your focuses makes your objective facts clear and straightforward. Much obliged to you. maximum credit score

    ReplyDelete

 
Top