Javascript Validation

hello all

how to input my own JavaScript validation code into profile field ???

Please check my answer on this question in another thread