// JavaScript Document
<!--//控制输入框
function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
//-->

<!--//表单验证信息
	function isemail1 (s)
	{var regu = "^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)$";
	var re = new RegExp(regu);
	if (s.search(re) != -1){return true;}
	else{alert ("您输入的E-mail有误，请核对！");document.all ("email").value="";document.all ("email").focus();return false;}}
	
	function CheckPressForm() 
	{	
	if (document.Press ("name").value==""){alert("请输入姓名！");document.Press ("name").value="";document.Press ("name").focus();return false;}
	if (document.Press ("medianame").value==""){alert("请输入媒体名称！");document.Press ("medianame").value="";document.Press ("medianame").focus();return false;}
	if (document.Press ("applydate").value==""){alert("请输入申请日期！");document.Press ("applydate").value="";document.Press ("applydate").focus();return false;}
	if (document.Press ("tel").value==""){alert("请输入电话！");document.Press ("tel").value="";document.Press ("tel").focus();return false;}
	if (document.Press ("fax").value==""){alert("请输入传真！");document.Press ("fax").value="";document.Press ("fax").focus();return false;}
	if (document.Press ("email").value==""){alert("请输入E-mail！");document.Press ("email").value="";document.Press ("email").focus();return false;}
	if (document.Press ("email").value!="" && !isemail1( document.Press("email").value)  ){return false;}
	if (document.Press ("address").value==""){alert("请输入联系地址！");document.Press ("address").value="";document.Press ("address").focus();return false;}
	if (document.Press ("code").value==""){alert("请输入邮编！");document.Press ("code").value="";document.Press ("code").focus();return false;}
	if (document.Press ("VerifyCode").value==""){alert("验证码不能为空！");document.Press ("VerifyCode").value="";document.Press ("VerifyCode").focus();return false;}
	return true;
	}
	
	function CheckEnrollForm() 
	{	
	if (document.Enroll ("cnamech").value==""){alert("请输入单位名称（中文）！");document.Enroll ("cnamech").value="";document.Enroll ("cnamech").focus();return false;}
	if (document.Enroll ("address").value==""){alert("请输入公司地址！");document.Enroll ("address").value="";document.Enroll ("address").focus();return false;}
	if (document.Enroll ("code").value==""){alert("请输入邮政编码！");document.Enroll ("code").value="";document.Enroll ("code").focus();return false;}
	if (document.Enroll ("corporate").value==""){alert("请输入法人代表！");document.Enroll ("corporate").value="";document.Enroll ("corporate").focus();return false;}
	if (document.Enroll ("principal").value==""){alert("请输入参展负责人！");document.Enroll ("principal").value="";document.Enroll ("principal").focus();return false;}
	if (document.Enroll ("phone").value==""){alert("请输入手机号码！");document.Enroll ("phone").value="";document.Enroll ("phone").focus();return false;}
	if (document.Enroll ("tel").value==""){alert("请输入联系电话！");document.Enroll ("tel").value="";document.Enroll ("tel").focus();return false;}
	if (document.Enroll ("email").value==""){alert("请输入电子邮箱！");document.Enroll ("email").value="";document.Enroll ("email").focus();return false;}
	if (document.Enroll ("brand").value==""){alert("请输入产品品牌（中英文对照）！");document.Enroll ("brand").value="";document.Enroll ("brand").focus();return false;}
	if (document.Enroll ("VerifyCode").value==""){alert("验证码不能为空！");document.Enroll ("VerifyCode").value="";document.Enroll ("VerifyCode").focus();return false;}
	return true;
	}
	
	function CheckBoothLoginForm() 
	{	
	if (document.BoothLogin ("boothid").value==""){alert("请输入展位号！");document.BoothLogin ("boothid").value="";document.BoothLogin ("boothid").focus();return false;}
	if (document.BoothLogin ("boothpwd").value==""){alert("密码不能为空！");document.BoothLogin ("boothpwd").value="";document.BoothLogin ("boothpwd").focus();return false;}
	return true;
	}
	
	function CheckBoothForm01() 
	{	
	if (document.Booth ("corporation").value==""){alert("请输入企业名称！");document.Booth ("corporation").value="";document.Booth ("corporation").focus();return false;}
	if (document.Booth ("VerifyCode").value==""){alert("验证码不能为空！");document.Booth ("VerifyCode").value="";document.Booth ("VerifyCode").focus();return false;}
	return true;
	}
	
	function CheckBoothForm02() 
	{	
	if (document.Booth ("email").value!="" && !isemail1( document.Booth("email").value)  ){return false;}
	if (document.Booth ("VerifyCode").value==""){alert("验证码不能为空！");document.Booth ("VerifyCode").value="";document.Booth ("VerifyCode").focus();return false;}
	return true;
	}
	
	function CheckBoothForm03() 
	{	
	if (document.Booth ("password").value==""){alert("请输入新密码！");document.Booth ("password").value="";document.Booth ("password").focus();return false;}
	if (document.Booth ("rpassword").value==""){alert("请重复输入新密码！");document.Booth ("rpassword").value="";document.Booth ("rpassword").focus();return false;}
	if (document.Booth ("password").value != document.Booth ("rpassword").value){alert("您输入的两次密码不一样！");document.Booth ("rpassword").value="";document.Booth ("rpassword").focus();return false;}
	if (document.Booth ("VerifyCode").value==""){alert("验证码不能为空！");document.Booth ("VerifyCode").value="";document.Booth ("VerifyCode").focus();return false;}
	return true;
	}
	
 //-->
 
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->

