<% @ LANGUAGE = "VBSCRIPT" CODEPAGE = "936"%>
<! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> </ title>
<script language="JavaScript">
<! --
function chkchr () (
var regexp =/^(?: 19 | 2 [0123]) \ d \ d \ - (?: 0 [1-9] | 1 [012]) \ - (?: 0 [1-9] | [12 ] [0-9] | 3 [01 ])$/;
var re = regexp.test (form1.aa.value);
if (! re) (
alert ( "date of the unlawful");
form1.aa.focus ();
) else (
form1.submit ();
)
)
//-->
</ script>
</ head>
<body>
<form name="form1" method="post" action="" onsubmit="chkchr();return false;">
<input name="aa" type="text" id="aa">
<input type="submit" name="Submit" value="提交">
</ form> effective range :1900-2399, the format: 2003-08-06
</ body>
</ html> |