⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 company_register2.js

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 JS
字号:


function is_zw(str)
  {
	exp=/[0-9a-zA-Z_]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
  }
 
 function is_number(str)
{
	exp=/[^0-9()-]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
}


 function check_reg(){
 
  if (document.reg.companyname.value==""){
 alert("企业名称不能是空值!请继续注册...");
 document.reg.companyname.focus();
 return false;
 }

   if (document.reg.set_year.value==""){
 alert("企业成立时间不能是空值!请继续注册...");
 document.reg.set_year.focus();
 return false;
 }
 if (document.reg.set_year.value.match(/\D/)){
 alert("企业成立年份必须是数字!请继续注册...");
 document.reg.set_year.focus();
 return false;
 }
 if (document.reg.reg_currency.value==""){
 alert("企业注册资金不能是空值!请继续注册...");
 document.reg.reg_currency.focus();
 return false;
 }
  if (document.reg.reg_currency.value.match(/\D/)){
 alert("企业注册资金必须是数字!请继续注册...");
 document.reg.reg_currency.focus();
 return false;
 }

 if (document.reg.company_memo.value==""){
 alert("企业简介不能是空值!请继续注册...");
 document.reg.company_memo.focus();
 return false;
 }
  if (document.reg.contactperson.value==""){
 alert("联系人不能是空值!请继续注册...");
 document.reg.contactperson.focus();
 return false;
 }
 if (document.reg.phone.value==""){
 alert("联系电话不能是空值!请继续注册...");
 document.reg.phone.focus();
 return false;
 }
 if (!is_number(document.reg.phone.value)){
 alert("联系电话只能是数字0-9和-!请继续注册...");
 document.reg.phone.focus();
 return false;
 }
 if (!is_number(document.reg.companyfax.value)){
 alert("传真只能是数字0-9和-!请继续注册...");
 document.reg.companyfax.focus();
 return false;
 }
 if (document.reg.email.value==""){
 alert("邮箱必须输入!请继续注册...");
 document.reg.email.focus();
 return false;
 }

 if(document.reg.email.value.indexOf("@")==-1 || document.reg.email.value.indexOf(".")==-1){ 
 alert("邮箱格式不正确!请继续注册...");
 document.reg.email.focus();
 return false;
	}

 if (document.reg.zipcode.value==""){
 alert("邮政编码必须输入!请继续注册...");
 document.reg.zipcode.focus();
 return false;
 } 
 if (document.reg.zipcode.value.match(/\D/)){
 alert("邮政编码必须是数字!请继续注册...");
 document.reg.zipcode.focus();
 return false;
 }
 
 if (document.reg.address.value==""){
 alert("通讯地址必须输入!请继续注册...");
 document.reg.address.focus();
 return false;
 }	
 }


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -