﻿function checkMileageUp(textbox) {
        var count = 6;
        var input = textbox.value.replace(",", "");
        if (input.length != textbox.value.length) {
            count = 7;
        }

        if (input.length > 6) {
            textbox.value = textbox.value.substring(0, count);
        }
    }
