<div class="formArea">
    <!-- BEGIN DYNAMIC BLOCK: name_select -->
    <fieldset>
        <legend>{TEMPLATE_LEGEND}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr>
                <td class="name"><label for="fid-name">{NAME_TEXT}</label></td>
                <td>
                    {NAME_LIST}&nbsp;
                    {LOAD_BUTTON}
                </td>
            </tr>
        </table>
    </fieldset>
    <!-- END DYNAMIC BLOCK: name_select -->

    <fieldset>
        <legend>{COMPOSE_LEGEND}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <!-- BEGIN DYNAMIC BLOCK: name_edit -->
            <tr {NAME_ERROR}>
                <td class="name"><label for="fid-name">{NAME_TEXT}</label>&nbsp;{NAME_REQ}</td>
                <td><input type="text" name="name" id="fid-name" value="{NAME_VALUE}" maxlength="255" size="25" }></td>
            </tr>
            <!-- END DYNAMIC BLOCK: name_edit -->
            <tr {FROM_EMAIL_ERROR}>
                <td class="name"><label for="fid-from_email">{FROM_EMAIL_TEXT}</label>&nbsp;{FROM_EMAIL_REQ}</td>
                <td><input type="text" name="from_email" id="fid-from_email" value="{FROM_EMAIL_VALUE}" maxlength="255" size="25" }></td>
            </tr>
            <tr>
                <td class="name">{TO_TEXT}</td>
                <td>
                    <table width="100%">
                        <tr>
                            <td colspan="3">
                                <input type="checkbox" name="to_admin" id="fid-to_admin" value="true" {TO_ADMIN_CHECKED}>&nbsp;
                                <label for="fid-to_admin">{TO_ADMIN_TEXT}</label>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="checkbox" name="to_resellers" id="fid-to_resellers" value="true" onClick="to_oC('resellers');" {TO_RESELLERS_CHECKED}>&nbsp;
                                <label for="fid-to_resellers">{TO_RESELLERS_TEXT}</label>
                            </td>
                            <td>{TO_RESELLERS_MODE_LIST}</td>
                            <td>{TO_RESELLERS_SELECT_SHOW_HIDE}</td>
                        </tr>
                        <tr id="to_resellers_selection">
                            <td colspan="3">
                                {TO_RESELLERS_SELECT_LIST}
                                <div class="scrollingBoxAround">
                                    <table width="100%" class="scrollingBoxBorder">
                                        <tr>
                                            <td>
                                                <div class="scrollingBox massmaildetails">{TO_RESELLERS_SELECTION_STRING}</div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="checkbox" name="to_clients" id="fid-to_clients" value="true" onClick="to_oC('clients');" {TO_CLIENTS_CHECKED}>&nbsp;
                                <label for="fid-to_clients">{TO_CLIENTS_TEXT}</label>
                            </td>
                            <td>{TO_CLIENTS_MODE_LIST}</td>
                            <td>{TO_CLIENTS_SELECT_SHOW_HIDE}</td>
                        </tr>
                        <tr id="to_clients_selection">
                            <td colspan="3">
                                {TO_CLIENTS_SELECT_LIST}
                                <div class="scrollingBoxAround">
                                    <table width="100%" class="scrollingBoxBorder">
                                        <tr>
                                            <td>
                                                <div class="scrollingBox massmaildetails">{TO_CLIENTS_SELECTION_STRING}</div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr {SUBJECT_ERROR}>
                <td class="name"><label for="fid-subject">{SUBJECT_TEXT}</label>&nbsp;{SUBJECT_REQ}</td>
                <td><input type="text" name="subject" id="fid-subject" value="{SUBJECT_VALUE}" maxlength="255" size="70" }></td>
            </tr>
            <tr {BODY_ERROR}>
                <td class="name"><label for="fid-body">{BODY_TEXT}</label>&nbsp;{BODY_REQ}</td>
                <td>
                    <textarea name="body" id="fid-body" cols="54" rows="10">{BODY_VALUE}</textarea>
                    <div class="hint">{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 {NAME_ERROR}>
                <td class="name">&nbsp;</td>
                <td>
                    <input type="checkbox" class="checkbox" name="save_as" id="fid-save_as" value="true" maxlength="255" size="25" {SAVE_AS_CHECKED} onClick="save_as_oC();">&nbsp;
                    <label for="fid-save_as">{SAVE_AS_TEXT}</label>&nbsp;
                    <input type="text" name="save_as_name" id="fid-save_as_name" value="{SAVE_AS_NAME_VALUE}" maxlength="255" size="25" }>
                </td>
            </tr>
        </table>
    </fieldset>
    <!-- END DYNAMIC BLOCK: name_save_as -->
</div>

<input type="hidden" id="to_resellers_selection_hidden" name="to_resellers_selection_hidden" value="{TO_RESELLERS_SELECTION_HIDDEN}">
<input type="hidden" id="to_clients_selection_hidden" name="to_clients_selection_hidden" value="{TO_CLIENTS_SELECTION_HIDDEN}">
