<SCRIPT LANGUAGE="JavaScript">
<!-- 
function disableForm(theform) {
	if (document.all || document.getElementById) {
		for (i = 0; i < theform.length; i++) {
			var tempobj = theform.elements[i];
			if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
				tempobj.disabled = true;
		}
		return true;
	}
	else {
		alert("The form has been submitted.  Please do NOT resubmit. ");
		return false;
   }
}
//  End -->
</script>

<h1>{L_MAIL_SESSION_HEADER}</h1>
<table cellspacing="1" cellpadding="2" border="0" align="center" class="forumline">
	<tr> 
	  <th class="thTop">{L_ID}</th>
	  <th class="thTop">{L_GROUP}</th>
	  <th class="thTop">{L_EMAIL_SUBJECT}</th>
	  <th class="thTop" width="60">{L_BATCH_START}</th>
	  <th class="thTop" width="80">{L_BATCH_SIZE}</th>
	  <th class="thTop" width="60">{L_BATCH_WAIT}</th>
  	  <th class="thTop" width="60">{L_EMAIL_INCLUDE_TO}</th>
	  <th class="thTop" width="60">{L_EMAIL_FORMAT}</th>
	  <th class="thTop">{L_SENDER}</th>
	  <th class="thTop">{L_STATUS}</th>
	</tr>
	<!-- BEGIN mail_sessions -->
	<tr> 
	  <td class="{mail_sessions.ROW}" align="right"><span class="gensmall">{mail_sessions.ID}</span></td>
	  <td class="{mail_sessions.ROW}" align="left"><span class="gensmall">{mail_sessions.GROUP}</span></td>
	  <td class="{mail_sessions.ROW}" align="left"><span class="gensmall">{mail_sessions.SUBJECT}</span></td>
	  <td class="{mail_sessions.ROW}" align="center"><span class="gensmall">{mail_sessions.BATCHSTART}</span></td>
	  <td class="{mail_sessions.ROW}" align="center"><span class="gensmall">{mail_sessions.BATCHSIZE}</span></td>
	  <td class="{mail_sessions.ROW}" align="center"><span class="gensmall">{mail_sessions.BATCHWAIT}</span></td>
  	  <td class="{mail_sessions.ROW}" align="center"><span class="gensmall">{mail_sessions.EMAIL_INCLUDE_TO}</span></td>
	  <td class="{mail_sessions.ROW}" align="center"><span class="gensmall">{mail_sessions.EMAIL_FORMAT}</span></td>
	  <td class="{mail_sessions.ROW}" align="left"><span class="gensmall">{mail_sessions.SENDER}</span></td>
	  <td class="{mail_sessions.ROW}" align="left"><span class="gensmall">{mail_sessions.STATUS}</span></td>
	</tr>
	<!-- END mail_sessions -->
	<!-- BEGIN switch_no_sessions -->
	<tr> 
	  <td class="row2" align="center" colspan="10">{switch_no_sessions.EMPTY}</td>
	</tr>
	<!-- END switch_no_sessions -->
</table>

<h1>{L_EMAIL_TITLE}</h1>
<p>{L_EMAIL_EXPLAIN}</p>
<form method="post" action="{S_USER_ACTION}" onSubmit="return disableForm(this);">

{ERROR_BOX}

<table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline">
	<tr> 
	  <th class="thHead" colspan="2">{L_COMPOSE}</th>
	</tr>
	<tr> 
	  <td class="row1" align="right"><span class="gen"><b>{L_RECIPIENTS}</b></span></td>
	  <td class="row2" align="left">{S_GROUP_SELECT}</td>
	</tr>
	<tr> 
	  <td class="row1" align="right"><span class="gen"><b>{L_BATCH_SIZE}</b></span></td>
	  <td class="row2" align="left"><span class="gen"><input type="text" name="batchsize" size="4" maxlength="4" tabindex="2" class="post" value="{DEFAULT_SIZE}" /></span></td>
	</tr>                                
	<tr> 
	  <td class="row1" align="right"><span class="gen"><b>{L_BATCH_WAIT}</b></span></td>
	  <td class="row2" align="left"><span class="gen"><input type="text" name="batchwait" size="4" maxlength="4" tabindex="2" class="post" value="{DEFAULT_WAIT}" /> sec (between batches)</span></td>
	</tr>
	<tr>
		<td class="row1" align="right"><span class="gen"><b>{L_EMAIL_INCLUDE_TO}</b></span></td>
		<td class="row2" align="left"><span class="gen"><input type="radio" name="email_include_to" value="1" {S_EMAIL_INCLUDE_TO_YES} /> Yes (Every batch mail will have it)<BR /><input type="radio" name="email_include_to" value="0" {S_EMAIL_INCLUDE_TO_NO} /> No (Only the 1st batch mail will have it)</td>
	</tr>
	<tr>
		<td class="row1" align="right"><span class="gen"><b>{L_EMAIL_FORMAT}</b></span></td>
		<td class="row2" align="left"><span class="gen"><input type="radio" name="email_format" value="1" {S_EMAIL_FORMAT_HTML} /> {L_EMAIL_FORMAT_HTML}&nbsp;&nbsp;<input type="radio" name="email_format" value="0" {S_EMAIL_FORMAT_TEXT} /> {L_EMAIL_FORMAT_TEXT}</td>
	</tr>
	<tr>
	  <td class="row1" align="right"><span class="gen"><b>{L_EMAIL_SUBJECT}</b></span></td>
	  <td class="row2"><span class="gen"><input type="text" name="subject" size="45" maxlength="100" tabindex="2" class="post" value="{SUBJECT}" /></span></td>
	</tr>
	<tr> 
	  <td class="row1" align="right" valign="top"><span class="gen"><b>{L_EMAIL_MSG}</b></span></td>
	  <td class="row2"><span class="gensmall">When using HTML format, the following area should contain <BR />only the html code between the &lt;BODY&gt;...&lt;/BODY&gt; tags.</span><BR /><span class="gen"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post">{MESSAGE}</textarea></span></td>
	</tr>
	<tr> 
	  <td class="catBottom" align="center" colspan="2"><input type="submit" value="{L_EMAIL}" name="submit" class="mainoption" /></td>
	</tr>
</table>

</form>
