2 <script language="javascript" type="text/javascript">
\r
4 function emoticon(text) {
\r
5 text = ' ' + text + ' ';
\r
6 if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
\r
7 var caretPos = opener.document.forms['post'].message.caretPos;
\r
8 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
\r
9 opener.document.forms['post'].message.focus();
\r
11 opener.document.forms['post'].message.value += text;
\r
12 opener.document.forms['post'].message.focus();
\r
18 <table width="100%" border="0" cellspacing="0" cellpadding="10">
\r
22 {TPL_HDR1}<span class="cattitle">{L_EMOTICONS}</span>{TPL_HDR2}<table width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline">
\r
24 <td class="row1"><table width="100" border="0" cellspacing="0" cellpadding="5">
\r
25 <!-- BEGIN smilies_row -->
\r
26 <tr align="center" valign="middle">
\r
27 <!-- BEGIN smilies_col -->
\r
28 <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
\r
29 <!-- END smilies_col -->
\r
31 <!-- END smilies_row -->
\r
32 <!-- BEGIN switch_smilies_extra -->
\r
33 <tr align="center">
\r
34 <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></td>
\r
36 <!-- END switch_smilies_extra -->
\r
40 <td class="row4" align="center" valign="middle"><span class="genmed"><a href="javascript:window.close();" class="genmed">{L_CLOSE_WINDOW}</a></span></td>
\r