<script language="JavaScript">
function check() {
if (form.newpassword.value!=form.newpasswordcheck.value) {
alert ("Введены разные пароли!");
}
else {
form.submit();
}
}
</script>
<?php
include ("ad_header.php");
?>
<HTML><HEAD><TITLE>Изменение пароля</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
</HEAD>
<BODY text=#000000 vLink=#00468c aLink=#ff6633 link=#0053a2 bgColor=#ffffff>
<form action="action_pass.php" name=form method=post>
<table bgcolor="#D3D3D3">
<tr bgcolor=white>
<td>Логин:</td><td><input type=text name='newlogin' size=30></td>
</tr>
<tr bgcolor=white>
<td>Пароль:</td><td><input type=password name='newpassword' size=30></td>
</tr>
<tr bgcolor=white>
<td>Повторите пароль:</td><td><input type=password name='newpasswordcheck' size=30></td>
</tr>
<tr bgcolor=white><td colspan=2><center><input type=button value="Изменить" onClick="check()"></td></tr>
</table>
</form>

</BODY></HTML>
<?php
mysql_close ($link);
?>