{if $items} {if checkactive("newsletter")}
<!-- NEWSLETTER- FORM -->
<script language="javascript" type="text/javascript">
<!--
function check_newsletterform(){ldelim}
	if(document.newsletter.email_newsletter.value == ""){ldelim}
	alert('{$lang.jserrror_noemail_newsletter}');
	document.newsletter.email_newsletter.focus();
	return false;
	{rdelim}
	
	if(document.newsletter.name_newsletter.value == ""){ldelim}
	alert('{$lang.jserrror_noname_newsletter}');
	document.newsletter.name_newsletter.focus();
	return false;
	
	{rdelim}
{rdelim}
//-->
</script>
<form name="newsletter" action="index.php?p=newsletter&amp;area={$area}" method="post" onsubmit="return check_newsletterform();">
  <table width="100%" border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td class="naviheader">{$lang.newsletter}</td>
    </tr>
    <tr>
      <td class="box_innerhead"> {$lang.newsletter_select} </td>
    </tr>
    {foreach from=$items item=item name=newsletter}
    <tr>
      <td class="newsletteritems"><input class="noborder" name="newsletter[{$item->id}]" type="checkbox" value="1" {if $smarty.foreach.newsletter.total == 1}checked="checked"{/if} />
        {$item->name|escape:"html"}</td>
    </tr>
    {/foreach}
    <tr>
      <td class="newsletterbox"><div align="center">
          <table width="100%"  border="0" cellspacing="1" cellpadding="1">
            <tr>
              <td width="10%" nowrap="nowrap">{$lang.your_email}</td>
              <td><input name="email_newsletter" type="text" id="email_newsletter" style="width:98%" /></td>
            </tr>
            <tr>
              <td width="10%" nowrap="nowrap">{$lang.your_name}</td>
              <td><input name="name_newsletter" type="text" id="name_newsletter" style="width:98%" /></td>
            </tr>
            <tr>
              <td nowrap="nowrap">{$lang.format}</td>
              <td><select name="newsletterformat" id="newsletterformat">
                  <option value="html" selected="selected">{$lang.newsletter_html}</option>
                  <option value="text">{$lang.newsletter_text}</option>
                </select></td>
            </tr>
            <tr>
              <td colspan="2" nowrap="nowrap"><div align="center"> <br />
                  <input name="donewsletter" type="hidden"  value="1" />
                  <input name="area" type="hidden"  value="{$area}" />
                  <input class="button" type="submit" value="{$lang.newsletter_button}" />
                </div></td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>
<!-- // NEWSLETTER- FORM -->
{/if} {/if}