function On(object) {
object.className='On';
}

function Of(object) {
object.className='Off';
}

function SM(strCode) {
document.getElementById ('descp').value +="[" + strCode +"]";
document.getElementById ("smdiv").style.display="none";
}

function ShowSM() {
document.getElementById ("smdiv").style.display='block';
}

function WriteSM(){
s="<div dir=ltr class=\"sbox\" id=\"smdiv\"><div style=\"width:15px;float:right\" align=right ><a style=\"text-decoration: none; color: #800000; font-family: Arial; font-size: 8pt; font-weight: bold\" onclick=\"document.getElementById ('smdiv').style.display='none';\" href=\"javascript:void(0);\">	X</a></div>\n";
s+="<div><img border=\"0\" src=\"images/yek.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('İncə gülüş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/do.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('İncik')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/3.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Göz vurmaq')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/4.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Bərk gülüş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/5.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Gülüş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ></div>\n";
s+="<div><img border=\"0\" src=\"images/6.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Ağlamaq')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/7.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Sevgi')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/8.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Utanmaq')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/noh.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Dil')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/10.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Öpüş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ></div>\n";
s+="<div><img border=\"0\" src=\"images/yazdah.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Ürəyi sınmaq')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/12.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Təəccüb')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/13.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Əsəbi')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/14.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Razılıq')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/15.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Soyuqqanlı')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ></div>\n";
s+="<div><img border=\"0\" src=\"images/16.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Təşviş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/17.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Şeytan')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ><img border=\"0\" src=\"images/18.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Salamat qal')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/19.gif\"  width=\"18\" height=\"18\" hspace=2 class=\"Off\" onclick=\"SM('Naxoş')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\"><img border=\"0\" src=\"images/20.gif\" width=\"18\" height=\"18\" hspace=2 class=\"Off\"  onclick=\"SM('Gül')\" onmouseover=\"On(this)\" onmouseout =\"Of(this)\" ></div>\n";
s+="</div>";
document.write (s);

}

			
function IsValidForm() {
if  (document.getElementById ("cwriter").value =="") {
alert("Sehv") ;
document.getElementById ("cwriter").focus ();
return false;
}

} // end 


WriteSM();