<script type="text/javascript">

function tag(id, html) {
        var e = document.getElementById(id);
        if (e != null) {
            e.value += ' ' + html + ' ';
            e.focus();
        }
    }
    function showSmilies() {
        var e = document.getElementById('smiles');
        if (e != null) {
            if (e.style.display == 'block') { e.style.display = 'none'; } else { e.style.display = 'block'; }
        }
    }
</script>
<div class="smile" id="smiles" style="display: none;">
<center>
<?
for($i=0;$i<=99;$i++) {
?>
<a href="javascript:tag('message','[smile<?=$i;?>]')"><img src="/images/emoji/<?=$i;?>.png"></a>
<?
}
?>
<div class="hrs"></div>
</center></div>