Validation of some Brazilian documents written in Javascript.