﻿



function NumbersOnlyStopPaste(id, ValidateForm) {

    var value = $('#' + id).val();
    value = value.replace(".", "");
    value = value.replace(/,/g, ""); 
   
        if (isNaN(value)) {
            $('#' + id).val('');
        }
        else {

            $('#' + id).val(value);
        }
    

   
  

    if (ValidateForm) {
        FormFilledIn();
    }
}




function advanceField(CurrentFieldId, NumberOfPositions, FieldToAdvanceId) {

    var _charCount = $('#' + CurrentFieldId).val().length;

    if (_charCount == NumberOfPositions)
        $('#' + FieldToAdvanceId).focus();
}


