Pass in a numeric value (of any length) and this function will calculate the check-digit and append it to the value passed in. For more information see here - http://en.wikipedia.org/wiki/Global_Trade_Item_Number
Example: CalculateAndAppendCheckDigit(505582983239) returns 5055829832399