Based off of, http://www.smartwebby.com/DHTML/phone_no_validation.asp - it honors the logic as documented by smartwebby, but namespaced into a single global object, phoneCheck.