<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>个人注册信息输入</title>
</head><body><center><br />
<h1>个人信息输入</h1>
<br /><form name="b1">
 <table align="center">
 <tr>
 <td >姓名:</td>
 <td ><input type="text" name="name" /></td>
 </tr>
 <tr>
 <td>性别:</td>
 <td><input type="radio" name="sex" checked>男
 <input type="radio" name="sex"  />女 </td>
 </tr>
 <tr>
 <td>体重:</td>
 <td><input type="text" name="weight" /></td>
 </tr>
 <tr>
 <td valign="top">备注:</td>
 <td><textarea name="beizhu" rows="10" cols="40"></textarea></td>
 </tr>
  <tr>
     <pre>                <td colspan="2" align="center"><input type="button" onclick="sm()" name="zhuche" value="注册" />            <input type="reset" name="chongzhi" value="重置"></td></pre>
  </tr>
  </table>
</form>
</center>
<script language="javascript">
<!--
function sm()
{
if(document.b1.name.value=="")
   { alert("名字不能为空,请重新输入");
document.b1.name.focus();
return ;
}
if(document.b1.weight.value<50||document.b1.weight.value>200)
{
alert("输入的体重不对,请重新输入");
document.b1.weight.focus();
document.b1.weight.select();
return ;
}
if(document.b1.sex.checked)
{
   s="男";
else
   s="女";
}
document.write("你输入的信息是;<br>姓名"+document.b1.name.value+"<br>"+"性别"+s+"<br>"+"体重"+document.b1.weight.value+"<br>"+"备注"+document.b1.beizhu.value);
}
-->
</script></body>
</html>