anchor.diff:              }
   
               function validateCcNumber(e, dontHideErrorFrame) {
  -              cardNumber = (document.getElementById('cardNumber').value);
  +              cardNumber = (document.getElementById('card.cardNumber').value);
   
                 if(cardNumber.length <= previousCardNumber.length) {
                   previousCardNumber = cardNumber;
  
positive.code:   }
  
    function validateCcNumber(e, dontHideErrorFrame) {
      cardNumber = (document.getElementById('cardNumber').value);
  
      if(cardNumber.length <= previousCardNumber.length) {
        previousCardNumber = cardNumber;
  
negative.code:     result = result.replace(/\s+$/, ''); //remove trailing spaces
  
      previousCardNumber = result;
      document.getElementById('card.cardNumber').value = result;
    }
  
    function setExtraCost(selectedCard, lookedUpCard) {
  