<script language="JavaScript">
function check() {
if (form.username.value=="" || form.password.value=="" || form.email.value=="" || form.firstname.value=="" || form.lastname.value=="" || form.country.value=="" || form.city.value=="") {
alert ("Заполните все поля!");
}
else {
form.submit();
}
}
</script>
<?php
include ("txt/header.php");
?> 
<table width="560" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td height="22" bgcolor="#D3D3D3" class="menu">
<div align="center" title="hope-auction">
Регистрация
</div>
</td>
</tr>
<tr> 
<td align="center" valign="top" bgcolor="#D3D3D3"><table width="560" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"><table width="550" border="0" cellspacing="5" cellpadding="0">
<tr> 
<td>
<center>
<form action="regaction.php" name=form method=post>
<table class="t">
<tr bgcolor=white>
<td>Логин:</td><td><input type=text name='username' size=30 maxlength=30></td>
</tr>
<tr bgcolor=white>
<td>Пароль:</td><td><input type=password name='password' size=30 maxlength=100></td>
</tr>
<tr bgcolor=white>
<td>E-Mail:</td><td><input type=text name='email' size=30 maxlength=70></td>
</tr>
<tr bgcolor=white>
<td>Имя:</td><td><input type=text name='firstname' size=30 maxlength=30></td>
</tr>
<tr bgcolor=white>
<td>Фамилия:</td><td><input type=text name='lastname' size=30 maxlength=50></td>
</tr>
<tr bgcolor=white>
<td>Страна:</td><td><input type=text name='country' size=30 maxlength=50></td>
</tr>
<tr bgcolor=white>
<td>Город:</td><td><input type=text name='city' size=30 maxlength=50></td>
</tr>
<tr bgcolor=white><td colspan=2><center><img src="image_reg.php"></td></tr>
<tr bgcolor=white>
<td>Строка на картинке:</td><td><input type=text name='img_string' size=30 maxlength=6></td>
</tr>
<tr bgcolor=white><td colspan=2><center><input type=button value="Зарегистрироваться" onClick="check()"></td></tr>
</table>
</form>
</td>
</tr>
</table></td>
</tr>
</table></td></tr></table>
<br>
</td>
</tr>
</table></td>
</tr>
<?php
include ("txt/footer.php");
?> 

