<html>
<head>
<title>test</title>
<script language=javascript>
function emailCheck () {
var emailStr=documentallformtelvalue;
alert(emailStr);
var emailPat=/^(+)@(+)$/;
var matchArray=emailStrmatch(emailPat);
if (matchArray==null) {
alert(电子邮件地址必须包括 ( @ 和 ))
return false;
}
return true;
}
</script>
</head>
<body>
<form name=form>
<input type=text name=tel/>
<input type=button value=press onclick=emailCheck()/>
</form>
</span>
</body>
</html>