             decimalSeparator.length != 1 ||
             thousandsSeparator.length != 1)
         {
-			results.push(new ValidationResult(
-				true, baseField, "invalidFormatChar",
-				validator.invalidFormatCharsError));
-			return results;
+            results.push(new ValidationResult(
+                true, baseField, "invalidFormatChar",
+                validator.invalidFormatCharsError));
+            return results;
         }
 
         // Check for invalid characters in input.
         var validChars:String = 
-        	DECIMAL_DIGITS + NEGATIVE_FORMATTING_CHARS +
-			currencySymbol + decimalSeparator + thousandsSeparator;
+            DECIMAL_DIGITS + NEGATIVE_FORMATTING_CHARS +
+            currencySymbol + decimalSeparator + thousandsSeparator;
         for (i = 0; i < len; i++)
         {
             c = input.charAt(i);


        for (i = decimalSeparatorIndex + 1; i < len; i++)
        {
			if (DECIMAL_DIGITS.indexOf(input.charAt(i)) == -1)
			{
				results.push(new ValidationResult(
					true, baseField, "invalidChar",
					validator.invalidCharError));
				return results;
			}

			++numDigitsAfterDecimal;

			// Make sure precision is not exceeded.
			if (precision != -1 && numDigitsAfterDecimal > precision)
			{
				results.push(new ValidationResult(
					true, baseField, "precision",
					validator.precisionError));
				return results;
			}
		}

        // Make sure the input begins with a digit or a decimal point.
        if (DECIMAL_DIGITS.indexOf(input.charAt(0)) == -1 &&
			input.charAt(0) != decimalSeparator)
        {
            results.push(new ValidationResult(
				true, baseField, "invalidChar",
				validator.invalidCharError));
			return results;
        }

        // Make sure that every character before the decimal point
		// is a digit or is a thousands separator.
        // If it's a thousands separator, make sure it's followed
		// by three consecutive digits, and then make sure the next character
		// is valid (i.e., either thousands separator, decimal separator,
		// or nothing).
        var validGroupEnder:String = thousandsSeparator + decimalSeparator;
        for (i = 1; i < decimalSeparatorIndex; i++)
        {

                    DECIMAL_DIGITS.indexOf(input.charAt(i + 3)) == -1 ||
                    validGroupEnder.indexOf(input.charAt(i + 4)) == -1)
                {
                    results.push(new ValidationResult(
                        true, baseField, "separation",
                        validator.separationError));
                    return results;
                }
            }
            else if (DECIMAL_DIGITS.indexOf(c) == -1)
            {
                results.push(new ValidationResult(
                    true, baseField, "invalidChar",
                    validator.invalidCharError));
                return results;
            }
        }

