<script language="JavaScript">
<!--- hide script from old browsers

function start()
{
	if (top.stats) {
		if (top.stats.document) {
			top.stats.Message(0);
		}
	}
}

function mysubmit(cmd, msg)
{
	if (top.stats) {
		if (top.stats.document) {
			top.stats.Message(msg);
		}
	}
	document.sendform.cmd.value = cmd;
	document.sendform.submit();
}

function newwindow()
{
	msgWindow = open('||action||?cmd=addr_only&utoken=||putoken||&&','ADDRESSBOOK','width=500,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes','POPUP');
	if (msgWindow.opener == null){
		msgWindow.opener = self;
	}
	if (msgWindow.opener.sendform == null){
        msgWindow.opener.sendform = document.sendform;
	}
	msgWindow.focus();
}


function checkword(wrong_word, msg_line, nword)
{
	call_str = '||action||?cmd=check_word&utoken=||utoken||&word=';
	call_str = call_str + wrong_word;
	call_str = call_str + '&nword=';
	call_str = call_str + nword;
	call_str = call_str + '&line=';
	call_str = call_str + msg_line;
	call_str = call_str + '&&';

	msgWindow = open(call_str,'CHECK_SPELLING','width=320,height=240,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no','POPUP'); 
	msgWindow.opener = document;
	msgWindow.focus();
}

function display_dictionary()
{
	msgWindow = open('||action||?cmd=edit_dict&utoken=||putoken||&&','DICTIONARY'
			,'width=280,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no','POPUP');
	msgWindow.opener = document;
	msgWindow.focus();
}


// end hiding from old browsers -->
</script>

<html><head>
<title>View spelling mistakes</title>
</head>

<body bgcolor="#cedfff" onLoad="start()">

||ifdef||error||
	<center>
	<table border="1">		
		<tr>
			<td><img src="||nwimg||/attention.gif"></td>
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||

<form name="sendform" method=post action="||action||" ENCTYPE="multipart/form-data">
<input type="hidden" name="answered" value="||answered||">
<input type="hidden" name="folder" value="||folder||">
<input type=hidden name="utoken" value="||utoken||"> 
<input type=hidden name="cmd" value=""> 
<input type=hidden name="misspelt_line" value="">
<input type=hidden name="misspelt_word" value="">
<input type=hidden name="word_number" value="">
<input type=hidden name="corrected_word" value="">

<h3>Current message.</h3>
<table>
<tr>
	<td>
		<table border="0">
		<tr>
			<td align=right>To: </td>
			<td align=left>
				<input name="to" size=24 value="||html_text||to||" onFocus="document.sendform.oo[0].checked = true">
				<INPUT TYPE=RADIO NAME="oo" VALUE="t" CHECKED>
			</td>
			<td rowspan="4">
				Pick List (and Distribution List)<br>
				<img border="0" src="||nwimg||/clear.gif" alt="Clear" usemap="#Clearfield">
				<map name="Clearfield"><area coords="0,0,100,100" href="javascript:dele()"></map>

				<img border="0" src="||nwimg||/addrsbk.gif"  alt="Address Book" name="Display Address" usemap="#ABooks"><br>
				<map name="ABooks"><area coords="0,0,100,100" href="javascript:newwindow()"></map>

				<select name="tolist" size=5 onChange="setto(this)">
					<option>||picklist||</option> 
				</select>
			</td>
		</tr> 
		<tr>
			<td align=right>CC: </td>
			<td align=left>
				<input name="cc" size=24 value="||html_text||cc||" onFocus="document.sendform.oo[1].checked = true">
				<INPUT TYPE=RADIO NAME="oo" VALUE="c">
			</td>
		</tr>
		<tr>
			<td align=right>BCC: </td>
			<td align=left>
				<input name="bcc" size=24 value="||html_text||bcc||" onFocus="document.sendform.oo[2].checked = true">
				<INPUT TYPE=RADIO NAME="oo" VALUE="b">
			</td>
		</tr>
		<tr>
			<td align=right>Reply-To: </td>
			<td align=left>
				<input name="reply" size=24 value="||html_text||reply||" onFocus="document.sendform.oo[3].checked = true">
				<INPUT TYPE=RADIO NAME="oo" VALUE="r">
			</td>
		</tr>
		<tr>
			<td align=right>Attach:</td>
			<td align=left>
				||begin_attach||
					<b>||attach_name||</b> (||attach_ksize||k),<br>
				||end_attach||
			</td>
		</tr>
		<tr>
			<td></td>
			<td align=left><input type=image border="0" src="||nwimg||/add.gif" name="add_attach" value="Add Attachment"></td>
		</tr>
		</table>
	</td>
</tr>
</table>

<table>
<tr>
	<td>Subject: <input name="subject" size=66 value="||subject||"></td>
</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr cellpadding="0" cellspacing="0">
	<td align="center">
		<table>
		<tr>
			<td><h3>Original Message</h3></td>
			<td><input type=image border=0 src="||nwimg||/spellchk.gif" name="spell_check"></td>
		</tr>
		</table>
	<td align="center">
		<h3>I found ||lines_wrong||/||nlines|| lines with errors where ||nwrong|| words<br>
		are not in my dictionary</h3>
	</td>
</tr>
<tr cellpadding="0" cellspacing="0" >	
	<td align="center" valign="top"><textarea name="message" cols=34 rows=12>||message||</textarea></td>
	<td align="center" valign="top">
		<table width="100%">
		<tr>
			<td align="center"><a href="javascript:display_dictionary()">Edit Personal Dictionary</a></td>
		</tr>
		<tr>
			<td>
				<table border bgcolor="ffffff" width="100%">
				<tr>
					<td>||spell_list||</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>

<table width="100%">
<tr>
	<td><input type=image border=0 src="||nwimg||/send.gif" name="send"></a></td>
	<td align=left>
		Content-type:
		<select name="content_type" size="1">
			<option selected></option>
			||ifequal||content_type||text/html||
				<option selected>text/html</option>
			||else||
				<option>text/html</option>
			||endif||
			||ifequal||content_type||text/plain; charset="iso-8859-1"||
				<option selected>text/plain; charset="iso-8859-1"</option>
			||else||
				<option>text/plain; charset="iso-8859-1"</option>
			||endif||
			||ifequal||content_type||text/plain; charset="iso-8859-1"||
				<option selected>text/plain; charset="iso-2022-jp"</option>
			||else||
				<option>text/plain; charset="iso-2022-jp"</option>
			||endif||
		</select>
	</td>
	<td rowspan="4" align="center">
		<input type="image" src="||nwimg||/save.gif" border="0" name="save_draft" alt="Save Draft"><br>
		&nbsp;<br>
		<select name="dstfld" size="1">
			<option>||xfldlist||</option>
		</select>
	</td>
</tr>
<tr>
	<td>
		<input type=checkbox name="addsig" value="on" ||addsig||> Add Sig file
		<select name="_default_profile" size=1">
		||begin_profile||
			||ifnequal||_default_profile||profile_name||
				<option>||profile_name||</option>
			||else||
				<option selected>||profile_name||</option>
			||endif||
		||end_profile||
		</select>
	</td>
</tr>
<tr>
	<td><input type=checkbox name="send_autocc" value="on" ||send_autocc||> Send CC to self for confirmation</td>
	<td rowspan="2">
		Confirm:
		<select name="confirm">
			<option value="none">None</option>
			||ifequal||confirm||read||
				<option value="read" checked>Reading</option>
			||else||
				<option value="read">Reading</option>
			||endif||
		</select>
	</td>
</tr>
<tr>
	<td colspan="2"><input type=checkbox name="copyself" value="on" ||copyself||> Save a copy in copies to self folder</td>
</tr>
</table>
</form>

||copyright||
</body>
</html>

<script language="JavaScript">
<!--- hide script from old browsers
function dele()
{
	var i = 0, j;
  
	for (j=0; j<4; j++)
		if (document.sendform.oo[j].checked == true) i = j;  

	if (i==0)
		document.sendform.to.value = "";
	if (i==1)
		document.sendform.cc.value = "";
	if (i==2)
		document.sendform.bcc.value = "";
	if (i==3)
		document.sendform.reply.value = "";
	document.sendform.tolist.options[0].selected = true;
}

function setto(sel) 
{
	var option;
	var i;
	for (i=0; i<sel.options.length; i++) {
		if (sel.options[i].selected==true) {
			if (document.sendform.oo[0].checked == true) {
				if (document.sendform.to.value != "")
					document.sendform.to.value = ", " + document.sendform.to.value;
				document.sendform.to.value = sel.options[i].value + document.sendform.to.value;
			}
			if (document.sendform.oo[1].checked == true) {
				if (document.sendform.cc.value != "")
					document.sendform.cc.value = ", " + document.sendform.cc.value;
				document.sendform.cc.value = sel.options[i].value + document.sendform.cc.value;
			}
			if (document.sendform.oo[2].checked == true) {
				if (document.sendform.bcc.value != "")
					document.sendform.bcc.value = ", " + document.sendform.bcc.value;
				document.sendform.bcc.value = sel.options[i].value + document.sendform.bcc.value;
			}
			if (document.sendform.oo[3].checked == true) {
				if (document.sendform.reply.value != "")
					document.sendform.reply.value = ", " + document.sendform.reply.value;
				document.sendform.reply.value = sel.options[i].value + document.sendform.reply.value;
			}
		}
	}
	if (sel.options[0].selected==true) {
		dele();
	}
}
// end hiding from old browsers -->
</script>