<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>新会员登记</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript id=clientEventHandlersJS>
//函数名:chksafe
//功能介绍:检查是否含有"'",'\\',"/"
//参数说明:要检查的字符串
//返回值: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;
*/
}
//函数名:chkspc
//功能介绍:检查是否含有空格
//参数说明:要检查的字符串
//返回值: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;
}
}
//函数名:chkemail
//功能介绍:检查是否为Email Address
//参数说明:要检查的字符串
//返回值:0:不是 1:是
function chkemail(a)
{ var i=a.length;
var temp = a.indexOf('@');
var tempd = a.indexOf('.');
if (temp > 1) {
if ((i-temp) > 3){
if ((i-tempd)>0){
return 1;
}
}
}
return 0;
}
//opt1 小数 opt2 负数
//当opt2为1时检查num是否是负数
//当opt1为1时检查num是否是小数
//返回1是正确的,0是错误的
function chknbr(num,opt1,opt2)
{
var i=num.length;
var staus;
//staus用于记录.的个数
status=0;
if ((opt2!=1) && (num.charAt(0)=='-'))
{
//alert("You have enter a invalid number.");
return 0;
}
//当最后一位为.时出错
if (num.charAt(i-1)=='.')
{
//alert("You have enter a invalid number.");
return 0;
}
for (j=0;j<i;j++)
{
if (num.charAt(j)=='.')
{
status++;
}
if (status>1)
{
//alert("You have enter a invalid number.");
return 0;
}
if (num.charAt(j)<'0' || num.charAt(j)>'9' )
{
if (((opt1==0) || (num.charAt(j)!='.')) && (j!=0))
{
//alert("You have enter a invalid number.");
return 0;
}
}
}
return 1;
}
//函数名:chkdate
//功能介绍:检查是否为日期
//参数说明:要检查的字符串
//返回值:0:不是日期 1:是日期
function chkdate(datestr)
{
var lthdatestr
if (datestr != "")
lthdatestr= datestr.length ;
else
lthdatestr=0;
var tmpy="";
var tmpm="";
var tmpd="";
//var datestr;
var status;
status=0;
if ( lthdatestr== 0)
return 0
for (i=0;i<lthdatestr;i++)
{ if (datestr.charAt(i)== '-')
{
status++;
}
if (status>2)
{
//alert("Invalid format of date!");
return 0;
}
if ((status==0) && (datestr.charAt(i)!='-'))
{
tmpy=tmpy+datestr.charAt(i)
}
if ((status==1) && (datestr.charAt(i)!='-'))
{
tmpm=tmpm+datestr.charAt(i)
}
if ((status==2) && (datestr.charAt(i)!='-'))
{
tmpd=tmpd+datestr.charAt(i)
}
}
year=new String (tmpy);
month=new String (tmpm);
day=new String (tmpd)
//tempdate= new String (year+month+day);
//alert(tempdate);
if ((tmpy.length!=4) || (tmpm.length>2) || (tmpd.length>2))
{
//alert("Invalid format of date!");
return 0;
}
if (!((1<=month) && (12>=month) && (31>=day) && (1<=day)) )
{
//alert ("Invalid month or day!");
return 0;
}
if (!((year % 4)==0) && (month==2) && (day==29))
{
//alert ("This is not a leap year!");
return 0;
}
if ((month<=7) && ((month % 2)==0) && (day>=31))
{
//alert ("This month is a small month!");
return 0;
}
if ((month>=8) && ((month % 2)==1) && (day>=31))
{
//alert ("This month is a small month!");
return 0;
}
if ((month==2) && (day==30))
{
//alert("The Febryary never has this day!");
return 0;
}
return 1;
}
//函数名:fucPWDchk
//功能介绍:检查是否含有非数字或字母
//参数说明:要检查的字符串
//返回值:0:含有 1:全部为数字或字母
function fucPWDchk(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 jtrim(str)
{ while (str.charAt(0)==" ")
{str=str.substr(1);}
while (str.charAt(str.length-1)==" ")
{str=str.substr(0,str.length-1);}
return(str);
}
//函数名:fucCheckNUM
//功能介绍:检查是否为数字
//参数说明:要检查的数字
//返回值:1为是数字,0为不是数字
function fucCheckNUM(NUM)
{
var i,j,strTemp;
strTemp="0123456789";
if ( NUM.length== 0)
return 0
for (i=0;i<NUM.length;i++)
{
j=strTemp.indexOf(NUM.charAt(i));
if (j==-1)
{
//说明有字符不是数字
return 0;
}
}
//说明是数字
return 1;
}
//函数名:fucCheckTEL
//功能介绍:检查是否为电话号码
//参数说明:要检查的字符串
//返回值:1为是合法,0为不合法
function fucCheckTEL(TEL)
{
var i,j,strTemp;
strTemp="0123456789-()# ";
for (i=0;i<TEL.length;i++)
{
j=strTemp.indexOf(TEL.charAt(i));
if (j==-1)
{
//说明有字符不合法
return 0;
}
}
//说明合法
return 1;
}
//函数名:fucCheckLength
//功能介绍:检查字符串的长度
//参数说明:要检查的字符串
//返回值:长度值
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 ( 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>
<STYLE type=text/css>.main {
FONT-SIZE: 12px
}
.main1 {
FONT-SIZE: 14px
}
.main2 {
FONT-SIZE: 16px
}
.main3 {
FONT-SIZE: 7px
}
.main4 {
FONT-SIZE: 10px
}
A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A:active {
COLOR: #ff0000; TEXT-DECORATION: none
}
A:hover {
COLOR: #aa0000; TEXT-DECORATION: underline
}
</STYLE>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=750>
<TBODY>
<TR>
<TD height=62>
<DIV align=center><BR><BR>
<FORM language=javascript name=FORM1 onsubmit="return FORM1_onsubmit()"
action=reg_user_2.asp method=post>
<TABLE cellSpacing=0 cellPadding=0 width=230>
<TBODY>
<TR>
<TD align=middle><STRONG><FONT color=red>
</FONT></STRONG>
<TABLE cellSpacing=0 cellPadding=0 width=230 bgColor=#6d8e4d>
<TBODY>
<TR>
<TD height=2></TD>
<TD height=2>
<DIV align=right></DIV></TD></TR></TBODY></TABLE>
<TAB
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
ASP毕业设计论文+源码.rar (90个子文件)
ASP毕业设计论文+源码
毕业论文(基于Web的网上购物系统).doc 154KB
网上购物系统
FindOrderLogin.asp 5KB
ProductClass.asp 10KB
admin
Del_Manager.asp 464B
JS
main.js 3KB
menu.js 2KB
Add_Class_1.asp 2KB
Add_Class_2.asp 2KB
Index_Top.asp 919B
Shop_Login.htm 3KB
OrderList_Save.asp 708B
Del_Product.asp 484B
Conn.asp 396B
OrderList_CheckOK.asp 8KB
Check.asp 650B
Product_Modify.asp 8KB
User_Detail.asp 5KB
Manager_Modify_Ok.asp 416B
Manager_List.asp 3KB
Add_Product.asp 2KB
Default.asp 707B
Add_Product_2.asp 3KB
OrderList_Detail.asp 8KB
Add_Product_Ok.asp 6KB
Del_User.asp 473B
Add_Manager_Ok.asp 830B
Market_Manage.asp 637B
Add_Product_3.asp 7KB
OrderMessageBox.asp 2KB
OrderList_Check.asp 8KB
Add_Class_2_Name.asp 3KB
Manager_Modify.asp 3KB
Del_Orderlist.asp 651B
User_Check.asp 7KB
MessageBox.asp 2KB
Add_Class_2_Ok.asp 3KB
Add_Class_1_Ok.asp 3KB
Product_Check.asp 7KB
Product_Modify_Ok.asp 727B
Add_Manager.asp 5KB
pic
3COM3C16985.jpg 1KB
EPSONPerfection2400.jpg 5KB
TDK超薄外置刻录机试用.jpg 3KB
Radeon9500.jpg 6KB
联想同禧E1200家用电脑.gif 7KB
WALKMAN14X200.gif 12KB
WD2000BB.jpg 5KB
875P主板测试之-建基AX4CMAX.jpg 4KB
kingmax炫彩DDR.jpg 6KB
athlonxp3200+.jpg 4KB
朗科无驱高速型优盘.gif 4KB
115X150.gif 13KB
SunFireV60X.jpg 11KB
D-LINKDFE-530TX.jpg 3KB
奥林巴斯C750.jpg 5KB
豪杰大眼睛 95X149.jpg 12KB
HP1220C.jpg 2KB
AnyGate宽带路由器.jpg 5KB
68X55.gif 12KB
TW350X336.jpg 3KB
百事得战神8101B机箱.jpg 2KB
vz105161_1.gif 1KB
nesoLD500.jpg 4KB
R90_1.gif 1KB
JNC经典之作SSF-200.jpg 6KB
images
logo.gif 18KB
Thumbs.db 9KB
che1.gif 654B
back.gif 67B
ProductDetail.asp 8KB
Conn.asp 393B
PayMent.asp 6KB
PayMentDetail2.asp 6KB
PayMentDetailOk.asp 7KB
Default.asp 9KB
Reg_User_Ok.asp 4KB
ReOrderLoginCheck.asp 518B
LoginCheck.asp 852B
PayMentDetail.asp 5KB
Check.ASP 5KB
Reg_User.htm 9KB
MessageBox.asp 2KB
Reg_User_2.asp 19KB
Nothing.asp 608B
Util.asp 244B
PayMentSave.asp 4KB
ReLoginCheck.asp 524B
OrderListFind.asp 8KB
ProductSearch.asp 11KB
Clear.asp 800B
共 90 条
- 1
hanruijie88
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0