Handles $offerCode larger than 99999

Original code from Bricks grabbed rightmost 4 digits of offercodes with length == 5. Newer offercodes can be six digits or longer, which give bad cpt values. Now testing for offercode length > 4 instead.
Merge pull request #1 from kurtf/patch-1

Handles $offerCode larger than 99999