Код:
<script type="text/javascript">
<!--
// Copyright 2009 SiteNull.ru
var forsm = document.getElementById("main-reply");
var smilies = new Array(

'http://www.kolobok.us/smiles/standart/mosking.gif',
'http://www.kolobok.us/smiles/standart/grin.gif',
'http://www.kolobok.us/smiles/standart/smoke.gif',
'http://www.kolobok.us/smiles/standart/boast.gif',
'http://www.kolobok.us/smiles/standart/dirol.gif',
'http://www.kolobok.us/smiles/standart/pleasantry.gif',
'http://www.kolobok.us/smiles/standart/snooks.gif',
'http://www.kolobok.us/smiles/standart/no2.gif',
'http://www.kolobok.us/smiles/standart/secret.gif',
'http://www.kolobok.us/smiles/standart/aggressive.gif',
'http://www.kolobok.us/smiles/standart/not_i.gif',
'http://www.kolobok.us/smiles/standart/blush.gif',
'http://www.kolobok.us/smiles/standart/acute.gif',
'http://www.kolobok.us/smiles/standart/fool.gif',
'http://www.kolobok.us/smiles/standart/i-m_so_happy.gif',
'http://www.kolobok.us/smiles/standart/bad.gif',
'http://www.kolobok.us/smiles/standart/cray.gif',
'http://www.kolobok.us/smiles/standart/wink3.gif',
'http://www.kolobok.us/smiles/standart/sorry.gif',
'http://www.kolobok.us/smiles/standart/good.gif',
'http://www.kolobok.us/smiles/standart/pardon.gif',
'http://www.kolobok.us/smiles/standart/swoon2.gif',
'http://www.kolobok.us/smiles/standart/sad.gif',
'http://www.kolobok.us/smiles/standart/don-t_mention.gif',
'http://www.kolobok.us/smiles/standart/victory.gif',
'http://www.kolobok.us/smiles/standart/scare2.gif',
'http://www.kolobok.us/smiles/standart/yahoo.gif',
'http://www.kolobok.us/smiles/standart/nea.gif',
'http://www.kolobok.us/smiles/standart/rofl.gif',
'http://www.kolobok.us/smiles/standart/derisive.gif',
'http://www.kolobok.us/smiles/standart/lazy.gif',
'http://www.kolobok.us/smiles/standart/don-t_mention.gif',
'http://www.kolobok.us/smiles/standart/victory.gif',
'http://www.kolobok.us/smiles/standart/scare2.gif',
'http://www.kolobok.us/smiles/standart/yahoo.gif',
'http://www.kolobok.us/smiles/standart/nea.gif',
'http://www.kolobok.us/smiles/standart/rofl.gif',
'http://www.kolobok.us/smiles/standart/derisive.gif',
'http://www.kolobok.us/smiles/standart/lazy.gif',
'http://www.kolobok.us/smiles/standart/thank_you.gif',
'http://www.kolobok.us/smiles/standart/yes.gif',
'http://www.kolobok.us/smiles/standart/yes3.gif',
'http://www.kolobok.us/smiles/standart/drinks.gif',
'http://www.kolobok.us/smiles/standart/clapping.gif',
'http://www.kolobok.us/smiles/standart/blush2.gif',
'http://www.kolobok.us/smiles/standart/yes2.gif',
'http://www.kolobok.us/smiles/rpg/king.gif',
'http://www.kolobok.us/smiles/rpg/butcher.gif',
'http://www.kolobok.us/smiles/rpg/queen.gif',
'http://www.kolobok.us/smiles/rpg/king2.gif',
'http://www.kolobok.us/smiles/madhouse/suicide_fool-edit.gif',
'http://www.kolobok.us/smiles/madhouse/man_in_love.gif',
'http://www.kolobok.us/smiles/madhouse/girl_crazy.gif',
'http://www.kolobok.us/smiles/madhouse/girl_wacko.gif',
'http://www.kolobok.us/smiles/madhouse/dash2.gif',
'http://www.kolobok.us/smiles/madhouse/wacko2.gif',
'http://www.kolobok.us/smiles/madhouse/girl_hospital.gif',
'http://www.kolobok.us/smiles/madhouse/mail1.gif',
'http://www.kolobok.us/smiles/he_and_she/curtsey.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_blum2.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_witch.gif',
'http://www.kolobok.us/smiles/he_and_she/give_heart.gif',
'http://www.kolobok.us/smiles/he_and_she/hysteric.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_hide.gif',
'http://www.kolobok.us/smiles/he_and_she/parting.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_dance.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_cray.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_sigh.gif',
'http://www.kolobok.us/smiles/he_and_she/feminist.gif',
'http://www.kolobok.us/smiles/he_and_she/give_rose.gif',
'http://www.kolobok.us/smiles/he_and_she/first_move.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_in_love.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_haha.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_cray2.gif',
'http://www.kolobok.us/smiles/he_and_she/girl_impossible.gif',
'http://www.kolobok.us/smiles/he_and_she/spruce_up.gif',
'http://www.kolobok.us/smiles/light_skin/give_heart2.gif',
'http://www.kolobok.us/smiles/other/spam.gif',
'http://www.kolobok.us/smiles/big_madhouse/wacko3.gif',
'http://www.kolobok.us/smiles/artists/vishenka/l_hug.gif',
'http://www.kolobok.us/smiles/artists/vishenka/l_daisy.gif',
'http://www.kolobok.us/smiles/user/KidRock_01.gif',
'http://www.kolobok.us/smiles/user/KidRock_05.gif',
'http://www.kolobok.us/smiles/user/KidRock_04.gif',
'http://www.kolobok.us/smiles/user/moinmoin_01.gif',
'http://www.kolobok.us/smiles/user/KidRock_02.gif',
'http://www.kolobok.us/smiles/user/KidRock_07.gif',
'http://www.kolobok.us/smiles/user/Rulezzz_07.gif',
'http://www.kolobok.us/smiles/user/KidRock_06.gif',
'http://i.smiles2k.net/nations_smiles/3dflagsdotcom_russi_2faws.gif',
'http://www.kolobok.us/smiles/user/FinouCat_02.gif',
'http://www.kolobok.us/smiles/user/unknown_singer.gif',
'http://www.kolobok.us/smiles/user/FinouCat_03.gif',
'http://i019.radikal.ru/0802/f3/d401bcb531b6.gif',
'http://www.kolobok.us/smiles/artists/just_cuz/JC_thinking.gif',
'http://www.kolobok.us/smiles/artists/just_cuz/JC_goody.gif',
'http://www.kolobok.us/smiles/artists/just_cuz/JC_ThankYou.gif',
'http://www.kolobok.us/smiles/artists/laie/Laie_59.gif',
'http://www.kolobok.us/smiles/artists/laie/Laie_91B.gif',
'http://www.kolobok.us/smiles/artists/connie/connie_24.gif',
'http://s3.rimg.info/beaa699fcde2e3c4ca5c8f9b18456a5a.gif',
'http://s.rimg.info/f325950a4c405129073ea4913b1e50dc.gif',
'http://s.rimg.info/7db8d4a173121954ab1800219b0f4164.gif',
'http://s6.rimg.info/61f3eb871c0466af154c188f2142d161.gif',
'http://smailiki.nm.ru/text/mit10.gif',
'http://i.smiles2k.net/padre_smiles/samtakoj.gif',
'http://i.smiles2k.net/plakat_smiles/dura.gif',
'http://i.smiles2k.net/plakat_smiles/ubey_sebia.gif',
'http://i.smiles2k.net/plakat_smiles/ahuet.gif',
'http://i.smiles2k.net/plakat_smiles/admintutja.gif',
'http://i.smiles2k.net/admin_moder_smiles/img.gif',
'http://i.smiles2k.net/hello_byby_smiles/1_012.gif',
'http://s8.rimg.info/31de369cff30c8d259395fbd50f4e52f.gif',
'http://s8.rimg.info/c3ca2590ebd73942f5dad2754de1a374.gif',
'http://funportal.info/smiles/smile66.gif',
'http://s7.rimg.info/00d3b01c3604095f552bf20667af2e58.gif',
'http://s5.rimg.info/a871d0a789e1de16896c111b159d5d5d.gif',
'http://funportal.info/smiles/smile146.gif',
'http://s8.rimg.info/42e1a8deb81188c73bd6e2a4e74d32eb.gif',
'http://s9.rimg.info/a24fe349ad000250c34d1c3bff09b9a6.gif',
'http://s8.rimg.info/d2d9c61661288a3606417bb24dcc265b.gif',
'http://s9.rimg.info/ca92124f75f67cd09ab3ed9d4df29dfe.gif',
'http://s9.rimg.info/45d296af09b36683bdb03b306506e82e.gif',
'http://s.rimg.info/f904c4b040270ea61019c644838fb9cc.gif',
'http://s.rimg.info/76609ad7ca2d11817fa97bc5231b0965.gif',

'http://fun.nashcat.ru/smiles/msmile/action/m1601.gif',
'http://fun.nashcat.ru/smiles/tsmile/eat/m0598.gif',
'http://fun.nashcat.ru/smiles/csmile/goodbye/c0209.gif',
'http://fun.nashcat.ru/smiles/tsmile/say/t1409.gif',
'http://fun.nashcat.ru/smiles/tsmile/say/t1411.gif',
'http://fun.nashcat.ru/smiles/tsmile/say/t1426.gif',
'http://fun.nashcat.ru/smiles/msmile/card/m1540.gif'
)
forsm.style.height='210px';
smcontainer = forsm.parentNode;
smcnt = smcontainer.innerHTML;
smcontainer.innerHTML = "<table><tr><td valign='top'>"+smcnt+"</td><td valign='top' width='170'><div id='smcontain' align='center' style='width: 170px; height: 210px; border: 1px solid #999999; float: right; overflow: auto;'>&nbsp;</div></td></tr></table>";
for(i=0;i<smilies.length;i++){
document.getElementById("smcontain").innerHTML +="<img src='"+smilies[i]+"' alt='Smilies' title='Smilies' onclick='ins(this);' style='cursor: pointer;'>&nbsp;&nbsp;"
};
function ins(img){
smile('[img]'+img.src+'[/img]');
}
//-->
</script>