/* JavaScript Unleashed, Third Edition by Richard Wagner and R. Allen Wyke
ISBN: 067231763X Publisher Sams CopyRight 2000
*/ <html> <head> <title>Credit Card Validation</title> <script language="JavaScript"> <!--begin script function isCreditCard(textObj) { /* * This function validates a credit card entry. * If the checksum is ok, the function returns true. */ var ccNum; var odd = 1; var even = 2; var calcCard = 0; var calcs = 0; var ccNum2 = ""; var aChar = ''; var cc; var r;