Set class based on input matching a pattern

Author: Julian Hansen, March 2017

Valid input is of the form PPR####### (where # is numeric) - if the input matches the pattern the border is green, otherwise it is red. Border updates on change() event but can be set on keyup as well if need be.

If you get a Failed on DB Check change the value in the box and try again until you get a different result. The DB script randomly selects True / False