<?php function tag(id, html) { var e = document.getElementById(id); if (e != null) { e.value += html; e.focus(); } } ?>