function GetEmoticonTable(layer, image, field) {
   var emoticons = [
      [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
      [11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
      [21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
      [31, 32, 33, 34, 35, 36, 37, 38, 39, 40],
      [41, 42, 43, 44, 45, 46, 47, 48, 49, 50],
      [51, 52, 53, 54, 55, 56, 57, 58, 59, 60],
      [61, 62, 63, 64, 65, 66, 67, 68, 69, 0]      
   ];

   var close = "$('" + layer + "').innerHTML = '';";
   var over  = "this.width = 20; this.height = 20;";
   var out   = "this.width = 18; this.height = 18;";

   var html = "";

   html += "<table width='251' cellspacing='1' cellpadding='0' bgcolor='black' style='z-index:2;position:absolute;left:0;top:0'>";
   html += "<tr>";
   html += "<td colspan='17' bgcolor='white'>";
   html += "<table width='100%' cellspacing='0' cellpadding='0'>";
   html += "<tr height='20' bgcolor='#45639D' onclick=\"alwaysOnTop('" + layer + "');\">";
   html += "<td width='17'></td>";
   html += "<td width='215' align='center'><font color='white'>이모티콘 선택</font></td>";
   html += "<td width='17' align='center'><img src='/images/board_color/color_close.gif' align='absmiddle' style='cursor:hand' onclick=\"" + close + "\"></td>";
   html += "</tr>";
   html += "</table>";
   html += "</td>";
   html += "</tr>";

   for (var y = 0; y < emoticons.length; y++) {
      html += "<tr height='24' align='center' bgcolor='white'>";

      for (var x = 0; x < emoticons[y].length; x++) {
         var emoticon = emoticons[y][x];         
         var select   = "$('" + image + "').src = '/images/emoticon/" + emoticon + ".gif'; $('" + field + "').value = '" + emoticon + "';";

         html += "<td width='24'>";         
         html += "<img src='/images/emoticon/" + emoticon + ".gif' width='18' height='18' style='cursor:hand' onmouseove='" + over + "' onmouseou='" + out + "' onclick=\"" + select + close + "\">";
         html += "</td>";
      }

      html += "</tr>";
   }

   html += "</table>";
   html += "<iframe src='about:blank' width='251' height='197' frameborder='0' style='z-index:1;position:absolute;left:0;top:0'></iframe>";

   $(layer).innerHTML = html;   
}



