function add_emotion(event){comment=document.getElementById('comment');comment.value+=" "+ this.alt+" ";comment.focus();}
function load_emotion(){var emotion=document.getElementById('emotion');if(emotion){var emotions=emotion.getElementsByTagName('img');for(i=0;i<emotions.length;i++){emotions[i].onclick=add_emotion;}}}
if(document.all){attachEvent('onload',load_emotion);}
else{addEventListener('load',load_emotion,false);}
