I create validation script which take 3 parameters. It's Id of fields, RegExp and Message of validation