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

function selectword(sel)
{
	var i;
	for (i=0; i<sel.options.length; i++) {
		if (sel.options[i].selected==true) {
			document.form1.corrected_word.value = sel.options[i].text;
		}
	}
}

function changeword()
{
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.cmd.value = "change_word";
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.misspelt_word.value = document.form1.word.value;
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.misspelt_line.value = document.form1.line.value;
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.word_number.value = document.form1.nword.value;
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.corrected_word.value = document.form1.corrected_word.value;
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.submit();
	close();
}

function dicword()
{
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.cmd.value = "add_dict";
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.misspelt_word.value = document.form1.corrected_word.value;
	this.opener.||ifinstr||netscape_version||5.||document.||endif||sendform.submit();
	close();
}

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


<html><head>
<title>Correct word</title>
</head>

||ifdef||background||
<body background="||nwimg||/||background||" onLoad="focus()">
||else||
<body onLoad="focus()">
||endif||


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

<form name="form1" method="POST" action="||b_action||">
	<input type=hidden name="word" value="||word||">	
	<input type=hidden name="line" value="||line||">
	<input type=hidden name="nword" value="||nword||">
	
	<table>
		<tr><td><table>
			<tr>	<td><h3>Correcting '<em>||word||</em>'</h3></td></tr>
			<tr>	<td><input type=text name="corrected_word" value="||word||"></td>
			<tr>	<td align="center">
					<img border="0" src="||nwimg||/change.gif" alt="Change" usemap="#updateword">
					<map name="updateword"><area coords="0,0,100,100" href="javascript:changeword()"></map>

					<img border="0" src="||nwimg||/add.gif" alt="Add" usemap="#addtodic">
					<map name="addtodic"><area coords="0,0,100,100" href="javascript:dicword()"></map>
				</td>
			</tr>
			<tr>	<td align="center">
					<img border="0" src="||nwimg||/cancel.gif" alt="Cancel" usemap="#closespell">
					<map name="closespell"><area coords="0,0,100,100" href="javascript:close()"></map>
				</td>
			</tr>
		</table></td>
		<td><select name="spell_alt" onChange="selectword(this)" size=8>
					<option>||spell_alt||</option> 
				</select></td>
		</tr>

	</table>
</form>

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