function check_user(){
	if(isEmpty(document.getElementById("user_name_tx").value)){
		alert("名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_pass_tx").value)){
		alert("密码不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_quection_tx").value)){
		alert("寻密问题不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_answer_tx").value)){
		alert("问题答案不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById("user_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	return true;
}
function check_user_E(){
	if(isEmpty(document.getElementById("user_name_tx").value)){
		alert("名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_quection_tx").value)){
		alert("寻密问题不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById("user_email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById("user_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	return true;
}

function check_cert(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("称呼不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"content_tx").value)){
		alert("内容不能为空！");
		return false;
	}
	return true;
}

function check_msg(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("称呼不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"content_tx").value)){
		alert("内容不能为空！");
		return false;
	}
	return true;
}

function check_shopadd(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"countadd_tx").value)){
		alert("数量不能为空！");
		return false;
	}
	if(!isdigit(document.getElementById(clid+"countadd_tx").value)){
		alert("数量只能为数字！");
		return false;
	}
	if(!document.getElementById(clid+"countadd_tx").value>0){
		alert("数量必顺大与1！");
		return false;
	}
	return true;
}
function check_shopedit(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"countadd_tx").value)){
		alert("数量不能为空！");
		return false;
	}
	if(!isdigit(document.getElementById(clid+"countadd_tx").value)){
		alert("数量只能为数字！");
		return false;
	}
	if(!document.getElementById(clid+"countadd_tx").value>0){
		alert("数量必顺大与1！");
		return false;
	}
	return true;
}
function check_shopsave(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("称呼不能为空！");
		return false;
	}
	return true;
}

function check_job(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("姓名不能为空！");
		return false;
	}
	return true;
}

function check_login(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("用户名不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"pass_tx").value)){
		alert("密码不能为空！");
		return false;
	}
	return true;
}

function check_forget1(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("用户名不能为空！");
		return false;
	}
	return true;
}
function check_forget2(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_answer_tx").value)){
		alert("问题答案不能为空！");
		return false;
	}
	return true;
}
function check_forget3(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_pass_tx").value)){
		alert("密码不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"confirm_pass_tx").value)){
		alert("确认密码不能为空！");
		return false;
	}
	if(document.getElementById(clid+"confirm_pass_tx").value!=document.getElementById(clid+"user_pass_tx").value){
		alert("密码不一致！");
		return false;
	}
	return true;
}

function check_editpaass(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_pass_tx").value)){
		alert("原密码不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_newpass_tx").value)){
		alert("新密码不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"confirm_pass_tx").value)){
		alert("确认新密码不能为空！");
		return false;
	}
	if(document.getElementById(clid+"user_newpass_tx").value!=document.getElementById(clid+"confirm_pass_tx").value){
		alert("密码不一致！");
		return false;
	}
	return true;
}

function check_useredit(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("邮件不能为空！");
		return false;
	}
	return true;
}

function check_reg(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_name_tx").value)){
		alert("名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_pass_tx").value)){
		alert("密码不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"confirm_pass_tx").value)){
		alert("确认密码不能为空！");
		return false;
	}
	if(document.getElementById(clid+"user_pass_tx").value!=document.getElementById(clid+"confirm_pass_tx").value){
		alert("密码不一致！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_quection_tx").value)){
		alert("寻密问题不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_answer_tx").value)){
		alert("问题答案不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"user_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	return true;
}
