Javascript CNP Validator

Use the following function to validate your CNP string: