
function regcheck()
{
	if(trim(document.reg_form.instant_no.value)=="")
	{
		alert("卡号错误!");
		document.reg_form.instant_no.focus();
		return false
	}
	if(trim(document.reg_form.username.value)=="")
	{
		alert("请输入用户名!");
		document.reg_form.username.focus();
		return false
	}
	if(trim(document.reg_form.password.value)=="")
	{
		alert("请输入密码!");
		document.reg_form.password.focus();
		return false
	}
	if(trim(document.reg_form.password_confim.value)=="")
	{
		alert("请再次输入密码!");
		document.reg_form.password_confim.focus();
		return false
	}
	if(trim(document.reg_form.email.value)=="")
	{
		alert("请输入E-Mail!");
		document.reg_form.email.focus();
		return false
	}
	if(trim(document.reg_form.email_confim.value)=="")
	{
		alert("请再次输入E-Mail!");
		document.reg_form.email_confim.focus();
		return false
	}
	if(trim(document.reg_form.password.value)!=trim(document.reg_form.password_confim.value))
	{
		alert("两次输入密码不符，请重新输入!");
		document.reg_form.password.focus();
		return false
	}
	if(trim(document.reg_form.email.value)!=trim(document.reg_form.email_confim.value))
	{
		alert("两次输入E-mail不符，请重新输入!");
		document.reg_form.email.focus();
		return false
	}
	if (document.reg_form.email.value.length > 0 && !document.reg_form.email.value.match( /^.+@.+$/ ) ) {
		alert("EMAIL 错误！请重新输入");
		document.reg_form.email.focus();
		return false;
 	} 
	if(trim(document.reg_form.mobile.value)=="")
	{
		alert("请输入手机号!");
		document.reg_form.mobile.focus();
		return false
	}
	if(trim(document.reg_form.szSheng.value)=="xxx")
	{
		alert("请选择省市!");
		return false
	}
	if(trim(document.reg_form.ycode.value)=="")
	{
		alert("请输入验证码!");
		document.reg_form.ycode.focus();
		return false
	}
	return true;
}
