<html>
||undef||spell_allowed||
||ifnempty||header_charset||
	||begin_language||||ifempty||match_lang||||ifequal||header_charset||lang_charset||||define||match_lang||lang_name||||endif||||endif||||end_language||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||language||)||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||_language||)||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||_tpl_lang||)||
||endif||
||ifempty||match_lang||
	||define||spell_allowed||words.dat||
||else||

||begin_language||||ifequal||match_lang||lang_name||<meta http-equiv="Content-type" content="text/html; charset=||lang_charset||">||define||display_lang||lang_charset||||define||spell_allowed||(||lang_dictionary||)||||endif||||end_language||
||endif||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<title>||lang_str||View spelling mistakes||</title>

<script language="JavaScript">
<!--
function checkword(wrong_word, msg_line, nword)
{
	call_str = '||action||?cmd=check_word&force_connection=true&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 + '&language=||language||';

	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');
	if (msgWindow.opener == null) msgWindow.opener = self;
	if (msgWindow.opener.sendform == null) msgWindow.opener.sendform = document.sendform;
	msgWindow.focus();
}

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

function doDone(){
	document.sendform.cmd.value = "attach_msg";
	||ifdef||isbulletin||
		document.sendform.page.value = "send_bull";
		document.sendform.process.value = 'bulletin';
	||endif||
	document.sendform.submit();
}

//-->
</script>
||undef||wys||
||ifinstr||ie_version||7.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifinstr||ie_version||8.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifdef||ie_version||
	||ifnequal||is_mac||true||
		||ifnequal||vista_nowys||true|| 		
		||ifequal||_auto_wysiwyg||true||
			||define||wys||true||
		||endif||
	||endif||
||endif||
||endif||
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
</head>
<body class="body" onload="doresize();" onresize="doresize()">

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||

<form name="sendform" method="post" action="||action||">
<input type="hidden" name="answered" value="||answered||" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="attach_id" value="||attach_id||" />
<input type="hidden" name="to" value="||html_text||to||" />
<input type="hidden" name="cc" value="||html_text||cc||" />
<input type="hidden" name="bcc" value="||html_text||bcc||" />
<input type="hidden" name="subject" value="||html_text||subject||" />
<input type="hidden" name="from" value="||html_text||from||" />
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="confirm" value="||confirm||" />
<input type="hidden" name="isbulletin" value="||isbulletin||" />
<input type="hidden" name="priority" value="||priority||" />
<input type="hidden" name="msg_alternative" value="||msg_alternative||" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="process" value="" />
<input type="hidden" name="cmd" value="" />
<input type="hidden" name="return_attach" value="true" />
<input type="hidden" name="content_type" value="||content_type||" />
<input type="hidden" name="copyself" value="||copyself||" />
<input type="hidden" name="pgp_type" value="||pgp_type||" />
<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="" />
<input type="hidden" name="fld" value="||fld||" />
<input type="hidden" name="language" value="||language||" />
<input type="hidden" name="valid_day" value="||valid_day||" />
<input type="hidden" name="valid_month" value="||valid_month||" />
<input type="hidden" name="valid_year" value="||valid_year||" />

<center>
<br />
<table cellpadding="10" cellspacing="0" class="bg1">
<tr>
	<td class="c">
		<input type="button" class="btn" onclick="doDone()" value="||lang_str||Done||">
		<input type="submit" class="btn" name="spell_check" value="||lang_str||Check Again||">
		<input type="button" class="btn" onclick="display_dictionary()" value="||lang_str||Edit Dictionary||">
	</td>
	<td class="c LF b">
		||lang_str||I found|| ||lines_wrong||/||nlines|| ||lang_str||lines with errors where|| ||nwrong|| ||lang_str||words||<br />
		||lang_str||are not in my dictionary||.
	</td>
</tr>
<tr cellpadding="0" cellspacing="0" >
||ifnempty||wys||
	<input type="hidden" name="message" value="||html_line||message||">
||else||
	<td class="c" valign="top">
		<textarea name="message" cols="34" rows="12">||message||</textarea><br>
	</td>
||endif||
	<td align="center" ||ifnempty||wys||colspan="2" ||endif||valign="top">
		<table width="100%">
		<tr><td>
			<table bgcolor="ffffff" width="100%">
			<tr><td id="spelling">||spell_list||</td></tr>
			</table>
		</td></tr>
		</table>
	</td>
</tr>
</table>
</center>
</form>
</body>
</html>

