You will likely have to do this in your "on load" event or similar as the form is initialized. If you want to do this as someone types, then you would have to capture it in another event as the user either types or leaves the field. Several answers here...
https://www.google.com/search?q=adobe+javascript+bold+text&ie=utf-8&oe=utf-8