 <script src="include/ECM/EcmSendPdfButton/EcmSendPdfButton.js"></script> 
  <script src="include/ECM/comboselectbox.js"></script> 
<link rel="stylesheet" type="text/css" href="include/ECM/EcmSendPdfButton/EcmSendPdfButton.css">
<input title="Wyślij Email" class="button" onclick="{literal}if($('#div_send').css('display') == 'none'){$('#div_send').show('slow'); } 
            else { $('#div_send').hide('slow'); }{/literal}" type="button" name="sendpdf" id="sendpdf" value="Email">
<div id="div_send" style="border: 1px solid #cccccc;background:#e6e6e6;padding:5px;position:absolute;display:none;">
	Wybierz email: 
        <select name="addr_email" id="addr_email" style="width:250px;">
	        {foreach from=$EMAILLIST item=email}
			    <option value="{$email}">{$email}</option>
			{/foreach}
        </select>
       {if !empty($PDF_OPT)}
			{$PDF_OPT}
       {/if}
     <br>Treść:<br>
     <textarea id="textarea" rows="7" style="width:250px;">
{$text}
</textarea><br>
     <input name="cat_xls" id="cat_xls" title="Wyślij Email" accessKey="" class="button" 
     onclick="{literal}sendMailAjax(getSendPdfOpt());{/literal}" type="button" value="Wyślij Email"><br /><br /></div>