]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Emails/EditView.html
Release 6.2.0
[Github/sugarcrm.git] / modules / Emails / EditView.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 -->
38
39 <!-- BEGIN: main -->
40 <script type="text/javascript" language="Javascript">
41 {JS_VARS}
42 </script>
43 <script type="text/javascript" src="include/jsolait/init.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
44 <script type="text/javascript" src="include/javascript/jsclass_base.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
45 <script type="text/javascript" src="include/javascript/jsclass_async.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
46 <script type="text/javascript" src="modules/Emails/javascript/Email.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
47 <script type="text/javascript" src="modules/Documents/documents.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
48 {MESSAGE} 
49
50 <form action="index.php" method="post" id="EditView" name="EditView" enctype="multipart/form-data">
51         <input type="hidden" name="module" value="Emails" />
52         <input type="hidden" name="action" value="Save" />
53         <input type="hidden" name="contact_id" value="{CONTACT_ID}" />
54         <input type="hidden" name="user_id" value="{USER_ID}" />
55         <input type="hidden" name="return_module" value="{RETURN_MODULE}" />
56         <input type="hidden" name="return_id" value="{RETURN_ID}" />
57         <input type="hidden" name="send" value="" />
58         <input type="hidden" name="type" value="out" />
59         <input type="hidden" name="record" value="{ID}" />
60         <input type="hidden" name="return_action" value="{RETURN_ACTION}" />
61         <input type="hidden" name="inbound_email_id" value="{INBOUND_EMAIL_ID}" />
62         <input type="hidden" name="assigned_user_id" value="{ASSIGNED_USER_ID}" />
63         <input type="hidden" name="object_type" value="{OBJECT_TYPE}" />
64         <input type="hidden" name="object_id" value="{OBJECT_ID}" />
65         <input type="hidden" name="group" value="{GROUP}" />
66         <input type="hidden" name="origType" value="{TYPE}" />
67         
68         <table width="100%" cellpadding="0" cellspacing="0" border="0">
69                 <tr>
70                         <td>
71                                 <input type="submit" name="button" id="SAVE_HEADER" class="button primary" {disable_send} title="{MOD.LBL_SEND_BUTTON_TITLE}" accesskey="{MOD.LBL_SEND_BUTTON_KEY}" value=" {MOD.LBL_SEND_BUTTON_LABEL} " onclick="prepSave();this.form.action.value='Save';this.form.send.value='1';this.form.type.value='out';return fill_form('out', '{MOD.ERR_NOT_ADDRESSED}');" />
72                                 <input type="submit" name="button" class="button" title="{MOD.LBL_SAVE_AS_DRAFT_BUTTON_TITLE}" accesskey="{MOD.LBL_SAVE_AS_DRAFT_BUTTON_KEY}" value=" {MOD.LBL_SAVE_AS_DRAFT_BUTTON_LABEL} " onclick="this.form.action.value='Save';this.form.send.value='0';this.form.type.value='draft';fill_form('draft', '{MOD.ERR_NOT_ADDRESSED}');" />
73                                 <input type="submit" name="button" class="button" title="{APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{APP.LBL_CANCEL_BUTTON_KEY}" value=" {APP.LBL_CANCEL_BUTTON_LABEL} " onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'; {MYINBOX}" />
74                         </td>
75                         <td align="right" nowrap>
76                         </td>
77                         <td align='right'>
78                                 {ADMIN_EDIT}
79                         </td>
80                 </tr>
81         </table>
82         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
83                 <tr>
84                         <td>
85                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
86                                         <tr>
87 <!-- BEGIN: open_source_1 -->
88                                                 <td nowrap>
89                                                         <slot>
90                                                         </slot>
91                                                 </td>
92                                                 <td nowrap>
93                                                         <slot>
94                                                         </slot>
95                                                 </td>
96 <!-- END: open_source_1 -->
97                                                 <td nowrap>
98                                                         <slot>
99                                                         </slot>
100                                                 </td>
101                                                 <td scope="row" valign="top" align="right">
102                                                         <slot>
103                                                                 <select tabindex='2' name='parent_type' onchange="      document.EditView.parent_name.value=''; 
104                                                                                         changeQS(); 
105                                                                                         checkParentType(document.EditView.parent_type.value, document.EditView.change_parent);">
106                                                                         {TYPE_OPTIONS}</select>&nbsp; 
107                                                         </slot>
108                                                 </td>
109                                                 <td  nowrap>
110                                                         <slot>
111                                                                 <input id='parent_id' name='parent_id' type="hidden" value='{PARENT_ID}'>
112                                                                 <input class="sqsEnabled" id='parent_name' name='parent_name' tabindex='2' type='text' value="{PARENT_NAME}">
113                                                                 &nbsp;{CHANGE_PARENT_BUTTON} 
114                                                         </slot>
115                                                 </td>
116                                         </tr>
117                                         <tr>
118                                                 <td scope="row">
119                                                         <slot>
120                                                                 {APP.LBL_ASSIGNED_TO}&nbsp; 
121                                                         </slot>
122                                                 </td>
123                                                 <td >
124                                                         <slot>
125                                                                 <input class="sqsEnabled" tabindex='1' id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}">
126                                                                 <input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
127                                                                 <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accesskey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name="btn1" onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' />
128                                                         </slot>
129                                                 </td>
130                                                 <td nowrap>
131                                                         <slot>
132                                                         </slot>
133                                                 </td>
134                                                 <td nowrap>
135                                                         <slot>
136                                                         </slot>
137                                                 </td>
138                                                 <td nowrap>
139                                                         <slot>
140                                                         </slot>
141                                                 </td>
142                                         </tr>
143                                         <tr>
144                                                 <td colspan="5">
145                                                         &nbsp; 
146                                                 </td>
147                                         </tr>
148                                         <tr>
149                                                 <td colspan="1">
150                                                         &nbsp;
151                                                 </td>
152                                                 <td colspan="4">
153                                                         {MOD.LBL_NOTE_SEMICOLON}
154                                                 </td>
155                                                 <td colspan="2">
156                                                         &nbsp;
157                                                 </td>
158                                         </tr>
159                                         <tr valign="top">
160                                                 <td scope="row">
161                                                         <slot>
162                                                                 {MOD.LBL_TO}
163                                                         </slot>
164                                                 </td>
165                                                 <td colspan="4"  nowrap="NOWRAP">
166                                                         <slot>
167                                                                 <table cellspacing="0" cellpadding="0" border="0">
168                                                                         <tr>
169                                                                                 <td>
170                                                                                         <textarea id="to_addrs_field" name='to_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{TO_ADDRS}">{TO_ADDRS}</textarea> 
171                                                                                         <input type="hidden" id="to_addrs_ids" name="to_addrs_ids" value="{TO_ADDRS_IDS}" />
172                                                                                         <input type="hidden" id="to_addrs_emails" name="to_addrs_emails" value="{TO_ADDRS_EMAILS}" />
173                                                                                         <input type="hidden" id="to_addrs_names" name="to_addrs_names" value="{TO_ADDRS_NAMES}" />
174                                                                                 </td>
175                                                                                 <td style="padding-left: 4px;">
176                                                                                         {CHANGE_TO_ADDRS_BUTTON}
177                                                                                 </td>
178                                                                         </tr>
179                                                                 </table>
180                                                         </slot>
181                                                 </td>
182                                         </tr>
183                                         <tr>
184                                                 <td scope="row">
185                                                         <slot>
186                                                                 {MOD.LBL_CC}
187                                                         </slot>
188                                                 </td>
189                                                 <td  colspan="4" nowrap="NOWRAP">
190                                                         <slot>
191                                                                 <table cellspacing="0" cellpadding="0" border="0">
192                                                                         <tr>
193                                                                                 <td>
194                                                                                         <textarea id="cc_addrs_field" name='cc_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{CC_ADDRS}">{CC_ADDRS}</textarea> 
195                                                                                         <input type="hidden" id="cc_addrs_ids" name="cc_addrs_ids" value="{CC_ADDRS_IDS}" />
196                                                                                         <input type="hidden" id="cc_addrs_emails" name="cc_addrs_emails" value="{CC_ADDRS_EMAILS}" />
197                                                                                         <input type="hidden" id="cc_addrs_names" name="cc_addrs_names" value="{CC_ADDRS_NAMES}" />
198                                                                                 </td>
199                                                                                 <td style="padding-left: 4px;">
200                                                                                         {CHANGE_CC_ADDRS_BUTTON}
201                                                                                 </td>
202                                                                         </tr>
203                                                                 </table>
204                                                         </slot>
205                                                 </td>
206                                         </tr>
207                                         <tr valign="top">
208                                                 <td scope="row">
209                                                         <slot>
210                                                                 {MOD.LBL_BCC}
211                                                         </slot>
212                                                 </td>
213                                                 <td  colspan="4" nowrap="NOWRAP">
214                                                         <table cellspacing="0" cellpadding="0" border="0">
215                                                                 <tr>
216                                                                         <td>
217                                                                                 <textarea id="bcc_addrs_field" name='bcc_addrs' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{BCC_ADDRS}">{BCC_ADDRS}</textarea> 
218                                                                                 <input type="hidden" id="bcc_addrs_ids" name="bcc_addrs_ids" value="{BCC_ADDRS_IDS}" />
219                                                                                 <input type="hidden" id="bcc_addrs_emails" name="bcc_addrs_emails" value="{BCC_ADDRS_EMAILS}" />
220                                                                                 <input type="hidden" id="bcc_addrs_names" name="bcc_addrs_names" value="{BCC_ADDRS_NAMES}" />
221                                                                         </td>
222                                                                         <td style="padding-left: 4px;">
223                                                                                 {CHANGE_BCC_ADDRS_BUTTON}
224                                                                         </td>
225                                                                 </tr>
226                                                         </table>
227                                                 </td>
228                                         </tr>
229                                         <tr valign="top">
230                                                 <td scope="row">
231                                                         <slot>
232                                                                 {MOD.LBL_FROM} 
233                                                         </slot>
234                                                 </td>
235                                                 <td  colspan="4" nowrap="NOWRAP">
236                                                         <slot>
237                                                                 <table cellspacing="0" cellpadding="0" border="0">
238                                                                         <tr>
239                                                                                 <td>
240                                                                                         <textarea id="from_addr_field" name='from_addr' tabindex='3' cols="80" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" value="{FROM_ADDR}">{FROM_ADDR}</textarea> {FROM_ADDR_GROUP} 
241                                                                                         <input type="hidden" id="from_addr_email" name="from_addr_email" />
242                                                                                         <input type="hidden" id="from_addr_name" name="from_addr_name" />
243                                                                                 </td>
244                                                                         </tr>
245                                                                 </table>
246                                                         </slot>
247                                                 </td>
248                                         </tr>
249                                         <tr>
250                                                 <td colspan="5">
251                                                         &nbsp;
252                                                 </td>
253                                         </tr>
254                                         <tr>
255                                                 <td scope="row">
256                                                         <slot>
257                                                                 {MOD.LBL_SUBJECT}
258                                                         </slot>
259                                                 </td>
260                                                 <td colspan='4' >
261                                                         <slot>
262                                                                 <textarea name='name' tabindex='4' cols="100" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{NAME}</textarea> 
263                                                         </slot>
264                                                 </td>
265                                         </tr>
266                                         <tr>
267                                                 <td valign="top" scope="row">
268                                                         {MOD.LBL_BODY}
269                                                 </td>
270 <!-- BEGIN: htmlarea -->
271                                                 <td colspan="2" >
272                                                         <slot>
273                                                                 <div id="editor_select">
274                                                                         <input id="setEditor" name="setEditor" value="1" {EMAIL_EDITOR_OPTION} type="checkbox" onclick="toggle_textonly();">
275                                                                         {MOD.LBL_EMAIL_EDITOR_OPTION} 
276                                                                 </div>
277                                                         </slot>
278                                                 </td>
279                                                 <td scope="row" valign="top">
280                                                         <slot>
281                                                                 {MOD.LBL_USE_TEMPLATE}&nbsp; 
282                                                         </slot>
283                                                 </td>
284                                                 <td  nowrap width="1">
285                                                         <slot>
286                                                                 <select tabindex='2' name='email_template' onchange="fill_email(this.options[this.selectedIndex].value);">
287                                                                         {EMAIL_TEMPLATE_OPTIONS}
288                                                                 </select>
289                                                         </slot>
290                                                 </td>
291                                         </tr>
292                                         <tr>
293                                                 <td valign="top" scope="row">
294                                                         &nbsp;
295                                                 </td>
296                                                 <td colspan="4" >
297                                                         {TINY}
298                                                         <slot>
299                                                                 <div id="html_div">
300                                                                         <textarea id="description_html" onblur="">{DESCRIPTION_HTML}</textarea>
301                                                                 </div>
302                                                                 <div id="alt_text_div">
303                                                                         <input id="toggle_textarea_elem" onclick="toggle_textarea();" type="checkbox" name="toggle_html">
304                                                                         {MOD.LBL_EDIT_ALT_TEXT} 
305                                                                 </div>
306                                                                 <div id="text_div" style="display: none;">
307                                                                         <textarea tabindex='5' id="description" name='description' cols="100" rows="20">{DESCRIPTION}</textarea>
308                                                                 </div>
309                                                         </slot>
310                                                 </td>
311 <!-- END: htmlarea -->
312                                         </tr>
313                                         <tr>
314                                                 <td valign="top" scope="row">
315                                                         {MOD.LBL_ATTACHMENTS}
316                                                 </td>
317                                                 <td colspan="4">
318                                                         {ATTACHMENTS_JAVASCRIPT} {ATTACHMENTS} 
319                                                         <div id="template_attachments">
320                                                         </div>
321                                                         <div id="uploads_div">
322                                                                 <div style="display: none" id="file0">
323                                                                         <input id='email_attachment0' name='email_attachment0' tabindex='0' size='40' type='file' />
324                                                                         &nbsp;<input type="button" onclick="deleteFile('0');" class="button" value="{APP.LBL_REMOVE}" />
325                                                                 </div>
326                                                                 <div style="display: none" id="file1">
327                                                                         <input id='email_attachment1' name='email_attachment1' tabindex='0' size='40' type='file' />
328                                                                         &nbsp;<input type="button" onclick="deleteFile('1');" class="button" value="{APP.LBL_REMOVE}" />
329                                                                 </div>
330                                                                 <div style="display: none" id="file2">
331                                                                         <input id='email_attachment2' name='email_attachment2' tabindex='0' size='40' type='file' />
332                                                                         &nbsp;<input type="button" onclick="deleteFile('2');" class="button" value="{APP.LBL_REMOVE}" />
333                                                                 </div>
334                                                                 <div style="display: none" id="file3">
335                                                                         <input id='email_attachment3' name='email_attachment3' tabindex='0' size='40' type='file' />
336                                                                         &nbsp;<input type="button" onclick="deleteFile('3');" class="button" value="{APP.LBL_REMOVE}" />
337                                                                 </div>
338                                                                 <div style="display: none" id="file4">
339                                                                         <input id='email_attachment4' name='email_attachment4' tabindex='0' size='40' type='file' />
340                                                                         &nbsp;<input type="button" onclick="deleteFile('4');" class="button" value="{APP.LBL_REMOVE}" />
341                                                                 </div>
342                                                                 <div style="display: none" id="file5">
343                                                                         <input id='email_attachment5' name='email_attachment5' tabindex='0' size='40' type='file' />
344                                                                         &nbsp;<input type="button" onclick="deleteFile('5');" class="button" value="{APP.LBL_REMOVE}" />
345                                                                 </div>
346                                                                 <div style="display: none" id="file6">
347                                                                         <input id='email_attachment6' name='email_attachment6' tabindex='0' size='40' type='file' />
348                                                                         &nbsp;<input type="button" onclick="deleteFile('6');" class="button" value="{APP.LBL_REMOVE}" />
349                                                                 </div>
350                                                                 <div style="display: none" id="file7">
351                                                                         <input id='email_attachment7' name='email_attachment7' tabindex='0' size='40' type='file' />
352                                                                         &nbsp;<input type="button" onclick="deleteFile('7');" class="button" value="{APP.LBL_REMOVE}" />
353                                                                 </div>
354                                                                 <div style="display: none" id="file8">
355                                                                         <input id='email_attachment8' name='email_attachment8' tabindex='0' size='40' type='file' />
356                                                                         &nbsp;<input type="button" onclick="deleteFile('8');" class="button" value="{APP.LBL_REMOVE}" />
357                                                                 </div>
358                                                                 <div style="display: none" id="file9">
359                                                                         <input id='email_attachment9' name='email_attachment9' tabindex='0' size='40' type='file' />
360                                                                         &nbsp;<input type="button" onclick="deleteFile('9');" class="button" value="{APP.LBL_REMOVE}" />
361                                                                 </div>
362                                                                 <div style="display: none" id="document0">
363                                                                         <input name='documentId0' id='documentId0' tabindex='0' type='hidden' />
364                                                                         <input name='documentName0' id='documentName0' disabled size='40' type='text' />
365                                                                         &nbsp;<input type="button" onclick="selectDocument('0');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('0');" class="button" value="{APP.LBL_REMOVE}" />
366                                                                 </div>
367                                                                 <div style="display: none" id="document1">
368                                                                         <input name='documentId1' id='documentId1' tabindex='1' type='hidden' />
369                                                                         <input name='documentName1' id='documentName1' disabled size='40' type='text' />
370                                                                         &nbsp;<input type="button" onclick="selectDocument('1');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('1');" class="button" value="{APP.LBL_REMOVE}" />
371                                                                 </div>
372                                                                 <div style="display: none" id="document2">
373                                                                         <input name='documentId2' id='documentId2' tabindex='2' type='hidden' />
374                                                                         <input name='documentName2' id='documentName2' disabled size='40' type='text' />
375                                                                         &nbsp;<input type="button" onclick="selectDocument('2');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('2');" class="button" value="{APP.LBL_REMOVE}" />
376                                                                 </div>
377                                                                 <div style="display: none" id="document3">
378                                                                         <input name='documentId3' id='documentId3' tabindex='3' type='hidden' />
379                                                                         <input name='documentName3' id='documentName3' disabled size='40' type='text' />
380                                                                         &nbsp;<input type="button" onclick="selectDocument('3');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('3');" class="button" value="{APP.LBL_REMOVE}" />
381                                                                 </div>
382                                                                 <div style="display: none" id="document4">
383                                                                         <input name='documentId4' id='documentId4' tabindex='4' type='hidden' />
384                                                                         <input name='documentName4' id='documentName4' disabled size='40' type='text' />
385                                                                         &nbsp;<input type="button" onclick="selectDocument('4');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('4');" class="button" value="{APP.LBL_REMOVE}" />
386                                                                 </div>
387                                                                 <div style="display: none" id="document5">
388                                                                         <input name='documentId5' id='documentId5' tabindex='5' type='hidden' />
389                                                                         <input name='documentName5' id='documentName5' disabled size='40' type='text' />
390                                                                         &nbsp;<input type="button" onclick="selectDocument('5');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('5');" class="button" value="{APP.LBL_REMOVE}" />
391                                                                 </div>
392                                                                 <div style="display: none" id="document6">
393                                                                         <input name='documentId6' id='documentId6' tabindex='6' type='hidden' />
394                                                                         <input name='documentName6' id='documentName6' disabled size='40' type='text' />
395                                                                         &nbsp;<input type="button" onclick="selectDocument('6');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('6');" class="button" value="{APP.LBL_REMOVE}" />
396                                                                 </div>
397                                                                 <div style="display: none" id="document7">
398                                                                         <input name='documentId7' id='documentId7' tabindex='7' type='hidden' />
399                                                                         <input name='documentName7' id='documentName7' disabled size='40' type='text' />
400                                                                         &nbsp;<input type="button" onclick="selectDocument('7');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('7');" class="button" value="{APP.LBL_REMOVE}" />
401                                                                 </div>
402                                                                 <div style="display: none" id="document8">
403                                                                         <input name='documentId8' id='documentId8' tabindex='8' type='hidden' />
404                                                                         <input name='documentName8' id='documentName8' disabled size='40' type='text' />
405                                                                         &nbsp;<input type="button" onclick="selectDocument('8');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('8');" class="button" value="{APP.LBL_REMOVE}" />
406                                                                 </div>
407                                                                 <div style="display: none" id="document9">
408                                                                         <input name='documentId9' id='documentId9' tabindex='9' type='hidden' />
409                                                                         <input name='documentName9' id='documentName9' disabled size='40' type='text' />
410                                                                         &nbsp;<input type="button" onclick="selectDocument('9');" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" /><input type="button" onclick="deleteDocument('9');" class="button" value="{APP.LBL_REMOVE}" />
411                                                                 </div>
412                                                         </div>
413                                                         <input type="button" name="add_file_button" onclick="addFile();" value="{MOD.LBL_ADD_FILE}" class="button" />
414                                                         <input type="button" name="add_document_button" onclick="addDocument();" value="{MOD.LBL_ADD_DOCUMENT}" class="button" />
415                                                 </td>
416                                         </tr>
417                                 </table>
418                         </td>
419                 </tr>
420         </table>
421 </form>
422 {JAVASCRIPT}
423 <script type="text/javascript" language="Javascript">
424         var old_load=window.onload; window.onload = function() { 
425                 old_load();
426                 setEditor();
427                 
428                 // cn: bug 5845 - use Group Inbox From info
429                 if(window.switchEmail) {
430                         switchEmail();
431                 } 
432         }
433 </script> 
434 <!-- END: main -->