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

推荐订阅源

P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
B
Blog
月光博客
月光博客
博客园 - 【当耐特】
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
博客园 - Franky
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
B
Blog RSS Feed
H
Help Net Security

博客园 - 沉沦有罪

续易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>