<style type="text/css">
#button-smiles {background-image:url(http://forumupload.ru/uploads/0000/19/5e/10693-1.gif); background-repeat: no-repeat; margin-left: 13рх}

</style>
<script language="JavaScript">
function popwnd()
{
var smiles = new Array

smiles.push("http://novusgalaxy.com/forum/images/smilies/new/8dcf9699.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/5c745924.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/154218d4.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/7f5341cc.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/5e565bcb.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/1894c7a1.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/07baa27a.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/1025c640.gif")
smiles.push ("http://novusgalaxy.com/forum/images/smilies/new/098eb4a5.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/332f960b.gif")
smiles.push("http://novusgalaxy.com/forum/images/smilies/new/0eeeff42.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/215ad82f.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/3c68bb64.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/33c4b951.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/04a97f13.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/baa60776.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/17f0f3b0.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/0fbbf481.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/4519626a.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/9bbc76d5.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/4d6161fd.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/4412144b.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/9a9e6a59.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/4e5dd44a.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/3070242c.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/8f337f1c.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/4fd9f2d3.gif")
    smiles.push("http://novusgalaxy.com/forum/images/smilies/new/967339c1.gif")
   
   
   

var msg = new String("")
msg = "<html><head><TITLE><Смайлы></TITLE></head>\r\n"
msg += "<body bgcolor=#F5F5F5 >"
msg = msg + "<" + "script language=\"JavaScript\">\r\n"

msg += "function insert_smile(a){\r\n"
msg += "txt = \"-- \";\r\n"
msg += "window.opener. smile(txt);\r\n"
msg += "window.focus()\r\n"
msg += "return false}\r\n"

msg = msg + "</" + "script>\r\n"

i=0

msg += "<div style=\"width: 100%; text-align : justify;\" >"
while(smiles[i])
{
msg = msg + "<img src=\"" + smiles[i] + "\" onclick=\"return insert_smile(this)\" style=\"cursor: pointer\">\r\n"
i++
}

msg += "</div><a href=\"\" onclick=\"window.close()\">Закрыть окно</a>"
msg += "</BODY></html>";

popup = window.open("","popDialog","height=500,width=500, scrollbars=1")
popup.document.write(msg)
popup.document.close()

return false
}
</script>

<script type="text/javascript">
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(17).innerHTML="<img  id=\"button-smiles\" title=\"Смайлы\" onclick=\"return popwnd()\" src=\"/i/blank.gif\" />"</script>
<script>
elm=document.getElementById("form-buttons").getElementsByTagName("tr")[0].getElementsByTagName("td")
i=0
while(elm[i])
{
  str=elm[i].innerHTML
  if(str.indexOf("i/smile.png")!=-1)
    elm[i].style.display='none'
  i++
}
</script>
</script>