TRUNK-2280 - Extracted the forceMaxLength javascript function from
encouterTypeForm.jsp and visitTypeForm.jsp to openmrs.js
Merge pull request #256 from guilhermejccavalcanti/TRUNK-2280

TRUNK-2280 - Refactor maximum length checking in the view layer