Validate a GTIN barcode number — EAN-8, UPC-A (12), EAN-13 or GTIN-14 — by the standard mod-10 check digit. Length selects the scheme.