{if $prefs.feature_freetags eq 'y' && $tiki_p_freetags_tag eq 'y'}

<tr class="formcolor">
<td>{tr}Folksonomy Tags{/tr}</td>
<td{if $cols} colspan="{$cols}"{/if}>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
{literal}
  function addTag(tag) {
    document.getElementById('tagBox').value = document.getElementById('tagBox').value + ' ' + tag;
  }
{/literal}
//--><!]]>
</script>
<div id="freetager">
{if $prefs.feature_help eq 'y'}
{tr}Put tags separated by spaces. For tags with more than one word, use no spaces and put words together.{/tr}
{/if}

<input type="text" id="tagBox" name="freetag_string" value="{$taglist|escape}" style="width:98%" />
<br />
{foreach from=$tag_suggestion item=t}
<a href="javascript:addTag('{$t|escape:'javascript'}');">{$t}</a> 
{/foreach}

  </div>
  </td>
</tr>

{/if}{* $prefs.feature_freetags eq 'y' *}
