FREEPBX-1953 - use Javascript to check field length but only if the Javascript function exists
Merge branch 'release/12.0' into release/13.0

Conflicts:
	functions.inc.php