javascript验证EMAIL的合法性---请高手指点一下
<%@page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<title>ums-register</title>
<link href="${pageContext.request.contextPath}/style/style.css" rel="stylesheet" type="text/css">
</head>
<body background="${pageContext.request.contextPath}/images/body_main.gif" topmargin="0" leftmargin="0">
<jsp:include page="/header.jsp" />
<script language="javascript">
function checkEmail()
{
var reEmail = /^([A-Za-z0-9])(\w)+@(\w)+(\.)(com|com\.cn|net|cn|net\.cn|org|biz|info|gov|gov\.cn|edu|edu\.cn)/;
if (!email.match(reEmail)&&email!="")
{
alert("Email必须符合要求!");
reEmail.focus();
return false;
}
return true;
}
</script>
<table border="0" cellspacing="0" cellpadding="3" width="100%">
<tr>
<td height="40">
<font color="blue"><b>您的位置:</b></font>
<font color="blue"><b>-> 新邮箱注册</b></font>
</td>
</tr>
</table>
<br>
<form onSubmit="return checkEmail()" method="post" action="${pageContext.request.contextPath}/user/register.do">
<table width="650" border="1" align="center" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
<tr>
<td align="center">电子邮件<font color="red">*</font></td>
<td>
<input type="text" size="40" name="email" maxlength="40">
</td>
<tr>
<td align="center">您感兴趣的健康杂志</td>
<td colspan="6">
女人健康中心<input type="checkbox" name="hobbies" value="1">
心理健康中心<input type="checkbox" name="hobbies" value="2">
美容健康中心<input type="checkbox" name="hobbies" value="3">
两性健康中心<input type="checkbox" name="hobbies" value="4">
男人健康中心<input type="checkbox" name="hobbies" value="5">
儿童健康中心<input type="checkbox" name="hobbies" value="6">
素食与减肥健康中心<input type="checkbox" name="hobbies" value="7">
健身健康中心<input type="checkbox" name="hobbies" value="8">
饮食健康中心<input type="checkbox" name="hobbies" value="9">
育儿健康中心<input type="checkbox" name="hobbies" value="10">
妊娠健康中心<input type="checkbox" name="hobbies" value="11">
新闻中心<input type="checkbox" name="hobbies" value="12">
</td>
</tr>
</table>
<br>
<center>
<input type="submit" class="button" value="注 册">
<input type="reset" class="button" value="取 消">
</center>
</form>
<jsp:include page="/footer.jsp"/>
</body>
</html>
------------------------------------------------------------------------------------------
点"注册"时,没有验证,请高手指点一下