<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<td valign="top" align="middle" width="152" height="63"> <form language="javascript" name="FORM1" onSubmit="return FORM1_onsubmit()" action="orderloginsb.asp" method="post">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">
<!--webbot bot="HTMLMarkup" startspan -->
<script language=javascript id=clientEventHandlersJS>
file://函数名:chksafe
file://功能介绍:检查是否含有"'",'\\',"/"
file://参数说明:要检查的字符串
file://返回值:0:是 1:不是
function chksafe(a)
{
return 1;
/* fibdn = new Array ("'" ,"\\", "、", ",", ";", "/");
i=fibdn.length;
j=a.length;
for (ii=0;ii<i;ii++)
{ for (jj=0;jj<j;jj++)
{ temp1=a.charAt(jj);
temp2=fibdn[ii];
if (tem';p1==temp2)
{ return 0; }
}
}
return 1;
*/
}
file://函数名:chkspc
file://功能介绍:检查是否含有空格
file://参数说明:要检查的字符串
file://返回值:0:是 1:不是
function chkspc(a)
{
var i=a.length;
var j = 0;
var k = 0;
while (k<i)
{
if (a.charAt(k) != " ")
j = j+1;
k = k+1;
}
if (j==0)
{
return 0;
}
if (i!=j)
{ return 2; }
else
{
return 1;
}
}
file://函数名:fucCheckLength
file://功能介绍:检查字符串的长度
file://参数说明:要检查的字符串
file://返回值:长度值
function fucCheckLength(strTemp)
{
var i,sum;
sum=0;
for(i=0;i<strTemp.length;i++)
{
if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
sum=sum+1;
else
sum=sum+2;
}
return sum;
}
</script>
<script language=javascript>
function chkitem(str)
{
var strSource ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
var ch;
var i;
var temp;
for (i=0;i<=(str.length-1);i++)
{
ch = str.charAt(i);
temp = strSource.indexOf(ch);
if (temp==-1)
{
return 0;
}
}
if (strSource.indexOf(ch)==-1)
{
return 0;
}
else
{
return 1;
}
}
function FORM1_onsubmit()
{
if (chkitem(document.FORM1.uid.value)==0)
{
alert("请输入正确的会员帐号。");
document.FORM1.uid.focus();
return false;
}
if ((document.FORM1.uid.vlaue=='') || (chkspc(document.FORM1.uid.value)==0)|| (chkspc(document.FORM1.uid.value)==2))
{
alert("请将会员帐号填写完整,且不能使用空格!");
document.FORM1.uid.focus();
return false;
}
if (chkitem(document.FORM1.pwd.value)==0)
{
alert("请将填写密码!");
document.FORM1.pwd.focus();
return false;
}
if ( fucCheckLength(document.FORM1.uid.value) != document.FORM1.uid.value.length )
{
alert("会员帐号请不要使用中文!");
document.FORM1.uid.focus();
return false;
}
if (fucCheckLength(document.FORM1.uid.value) <4 )
{
alert("会员帐号必须至少4位");
document.FORM1.uid.focus();
return false;
}
}
</script>
<!--webbot bot="HTMLMarkup" endspan -->
帐号
<input maxlength="16" size="14" name="uid">
</font> </p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">密码
<input maxlength="16" size="14" name="pwd" type="password">
</font> </p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
<font color="#B0E8F8"> <br>
<input type="submit" size="3" value="登录" name="Submit2">
<input type="button" value="注册会员" name="B1" onClick="window.location.href='reguser.htm';">
</font> </p>
</form></td>
</tr>
</tbody>
</table>
</body>
</html>
能代码给我吗??5555555