These Javascript programs verify the checksum on ATM and credit cards and 10-digit ISBN's. Enter the number (no spaces) and push the right button.
View the source to see how they work. There's nothing in them that you couldn't have written.