<a href="#" onClick="javascript:(document.form.field.value='[ B]TEXT[ /B]';)"><img src="bold.gif" border="0" alt="Bold"></a>