惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
博客园 - 【当耐特】
月光博客
月光博客
C
Check Point Blog
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
L
LangChain Blog
The Cloudflare Blog

博客园 - 沉沦有罪

续易crm源码客户资源管理系统crm源码(源代码c#) 五年了,续易 一直被模仿 从未被超越 续易oa源码最新完美版(源代码c# asp.net)重庆oa 续易软件工作室日志的开始 - 沉沦有罪 - 博客园 VSS-源代码管理器的用法 WEB打印代码大全 - 沉沦有罪 - 博客园 网页设计问题大搜集(有些细节的问题,很值得学习) - 沉沦有罪 - 博客园 showModalDialog和showModelessDialog使用心得 选择自 oyiboy 的 Blog SQL Server日期计算 DataGrid使用心得(附大量代码) - 沉沦有罪 - 博客园 url传递中文的解决方案总结 - 沉沦有罪 - 博客园 File文件控件,选中文件(图片,flash,视频)即立即预览显示 - 沉沦有罪 - 博客园 在b/s开发中经常用到的javaScript技术 - 沉沦有罪 - 博客园 JavaScript基本数据结构 javascript函数库 MS-SQL数据库开发常用汇总 ACCESS转化成SQL2000需要注意的几个问题 Session variables are lost if you use FRAMESET in Internet Explorer 6 用VS.NET2003制作WEB应用程序的安装包
一个JS验证 - 沉沦有罪 - 博客园
沉沦有罪 · 2006-06-28 · via 博客园 - 沉沦有罪

<script language="JavaScript">
<!--


function checkForm() {
if (document.reg.txtUserName.value=="")
 {
   alert("请完整输入会员帐号!")
   document.reg.txtUserName.focus()
   return false
  }
else if (document.reg.txtUserName.value.length <3 )
 {
   alert("帐号长度不得小于3字节:"+reg.txtUserName.value.length+"")
   document.reg.txtUserName.focus()
   return false
  }
else if (document.reg.txtUserName.value.length >14 )
 {
   alert("帐号长度不得大于14字节,当前的帐号长度为:"+reg.txtUserName.value.length+"")
   document.reg.txtUserName.focus()
   return false
  }
else if (!document.reg.txtUserName.value.match(/^[a-zA-Z0-9]{0,14}$/))
       {
   alert("用户帐号为数字,字母!!!")
   document.reg.txtUserName.focus()
   return false
  }

else if (document.reg.txtPassword.value=="")
 {
   alert("请完整输入会员密码!")
   document.reg.txtPassword.focus()
   return false
  }
else if (document.reg.re_txtPassword.value=="")
 {
   alert("请完整输入验证密码!")
   document.reg.re_txtPassword.focus()
   return false
  }
else if(document.reg.re_txtPassword.value!=document.reg.txtPassword.value)
 {
   alert("2次密码不一致。")
   document.reg.txtPassword.focus()
   return false
  }

else if (document.reg.txtCompanyName.value=="")
 {
   alert("请完整输入商家名称!")
   document.reg.txtCompanyName.focus()
   return false
  }

else if (!document.reg.email.value.match(/^[\w\.\-]+@([\w\-]+\.)+[a-z]{2,4}$/ig))
       {
   alert("邮件地址不太正确")
   return false
  }

else if (document.reg.verifycode.value=="")
 {
   alert("请输入验证码!")
   document.reg.verifycode.focus()
   return false
  }


else if (!document.reg.protocal.checked)
 {
   alert("需要同意协议才能注册!")
  
   return false
  }

}
function setprotocal(pvalue)
{
 if(pvalue=="Y"){
  document.reg.protocal.checked=true;
 }
}
// -->
</script>