<div class="formArea">
    <!-- BEGIN DYNAMIC BLOCK: edit_template -->
    <fieldset>
        <legend>{TEMPLATE_LEGEND}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {NAME_ERROR}>
                <td class="name"><label for="fid-template_name">{NAME_TEXT}</label>&nbsp;{NAME_REQ}</td>
                <td><input type="text" name="template_name" id="fid-template_name" value="{NAME_VALUE}" size="29"></td>
            </tr>
        </table>
    </fieldset>
    <!-- END DYNAMIC BLOCK: edit_template -->

    <!-- BEGIN DYNAMIC BLOCK: choose_template -->
    <fieldset>
        <legend>{TEMPLATE_LEGEND}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr>
                <td class="name">{NAME_TEXT}</td>
                <td>{NAME_LIST} {LOAD_BUTTON}</td>
            </tr>
        </table>
    </fieldset>
    <!-- END DYNAMIC BLOCK: choose_template -->

    <fieldset>
        <legend>{MASSMAIL_COMPOSE_MAIL}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr>
                <td class="name"><label for="fid-from_email">{FROM_TEXT}</label>&nbsp;{FROM_REQ}<br/>{FROM_SHORTHINT}</td>
                <td><input type="text" name="from" id="fid-from_email" value="{FROM_VALUE}" size="29"></td>
            </tr>
            <tr>
                <td class="name">{TO_TEXT}&nbsp;{TO_REQ}</td>
                <td>
                    <table width="100%">
                        <tr>
                            <td nowrap>
                                <input type="checkbox" class="checkbox" name="to_resellers" id="fid-to_resellers" onClick="updateComposeState();" value="true" {RESELLERS_DISABLED} {RESELLERS_CHECKED}>&nbsp;
                                <label for="fid-to_resellers">{RESELLERS_TEXT}</label>
                            </td>
                            <td>{RESELLERS_SELECT_LIST}</td>
                            <td nowrap><span id="resellers_select_links" class="hideVisibility">{RESELLERS_SELECT_LINK} | {RESELLERS_SHOW_LINK}</span><span id="resellers_select_text" class="hideVisibility">{RESELLERS_SELECT_TEXT} | {RESELLERS_SHOW_TEXT}</span></td>
                        </tr>
                        <tr id="resellersDetails" class="hideVisibility">
                            <td colspan="3"><div class="scrollingBoxAround"><table width="100%" class="scrollingBoxBorder"><tr><td><div class="scrollingBox massmaildetails">{RESELLERS_MAIL_LIST}</div></td></tr></table></div></td>
                        </tr>

                        <tr>
                            <td nowrap>
                                <input type="checkbox" class="checkbox" name="to_clients" id="fid-to_clients" onClick="updateComposeState();" value="true" {CLIENTS_DISABLED} {CLIENTS_CHECKED}>&nbsp;
                                <label for="fid-to_clients">{CLIENTS_TEXT}</label>
                            </td>
                            <td>{CLIENTS_SELECT_LIST}</td>
                            <td nowrap><span id="clients_select_links" class="hideVisibility">{CLIENTS_SELECT_LINK} | {CLIENTS_SHOW_LINK}</span><span id="clients_select_text" class="hideVisibility">{CLIENTS_SELECT_TEXT} | {CLIENTS_SHOW_TEXT}</span></td>
                        </tr>
                        <tr id="clientsDetails" class="hideVisibility">
                            <td colspan="3"><div class="scrollingBoxAround"><table width="100%" class="scrollingBoxBorder"><tr><td><div class="scrollingBox massmaildetails">{CLIENTS_MAIL_LIST}</div></td></tr></table></div></td>
                        </tr>

                        <tr>
                            <td colspan="3" nowrap>
                                <input type="checkbox" class="checkbox" name="to_admins" id="fid-to_admins" value="true" {ADMINS_DISABLED} {ADMINS_CHECKED}>&nbsp;
                                <label for="fid-to_admins">{ADMINS_TEXT}</label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-subject_email">{SUBJECT_TEXT}</label>&nbsp;{SUBJECT_REQ}</td>
                <td><input type="text" name="subject" id="fid-subject_email" value="{SUBJECT_VALUE}" size="70"></td>
            </tr>
            <tr>
                <td class="name"><label for="fid-body_email">{BODY_TEXT}</label>&nbsp;{BODY_REQ}<br/>{BODY_SHORTHINT}</td>
                <td><textarea name="body" id="fid-body_email" cols="54" rows="10">{BODY_VALUE}</textarea><div>{BODY_HINT}</div></td>
            </tr>
        </table>
    </fieldset>

    <!-- BEGIN DYNAMIC BLOCK: name_save_as -->
    <fieldset>
        <legend>{SAVE_AS_LEGEND}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr>
                <td class="name"></td>
                <td>
                    <input type="checkbox" class="checkbox" name="save_template" onClick="save_oC(document.forms[0], this);" id="fid-save_template" value="true" {SAVE_AS_DISABLED} {SAVE_AS_CHECKED}>&nbsp;
                    <label for="fid-save_template">{SAVE_AS_TEXT}</label>&nbsp;
                    <input type="text" name="template_name" id="fid-template_name" value="" size="29" {TEMPLATE_NAME_DISABLED}>
                </td>
            </tr>
        </table>
    </fieldset>
    <!-- END DYNAMIC BLOCK: name_save_as -->
</div>
