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_forget_email(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"user_name_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_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_editpass(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;
	}
	if(!emailCheck(document.getElementById(clid+"user_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_title_tx").value)){
		alert("标题不能为空！");
		return false;
	}
	/*if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("邮件不能为空！");
		return false;
	}*/
	return true;
}

function check_usermobile(clid){
	clid+="_";
	/*if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("邮件不能为空！");
		return false;
	}*/
	return true;
}

function check_usertemplete(clid){
	clid+="_";
	/*if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("邮件不能为空！");
		return false;
	}*/
	return true;
}

function check_usermark(clid){
	clid+="_";
	/*if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		alert("邮件不能为空！");
		return false;
	}*/
	return true;
}


function check_reg(clid){
	clid+="_";
	document.getElementById("user_name_checkspan").innerHTML="";
	if(isEmpty(document.getElementById(clid+"user_name_tx").value)){
		document.getElementById("user_name_checkspan").innerHTML="名称不能为空！";
		return false;
	}
    document.getElementById("user_name_checkspan").innerHTML="";
	if(!checkname(document.getElementById(clid+"user_name_tx").value)){
		document.getElementById("user_name_checkspan").innerHTML="只能有字母或数字！";
		return false;
	}
	document.getElementById("user_email_checkspan").innerHTML="";
	if(isEmpty(document.getElementById(clid+"user_email_tx").value)){
		document.getElementById("user_email_checkspan").innerHTML="电邮不能为空！";
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"user_email_tx").value)){
		document.getElementById("user_email_checkspan").innerHTML="电邮格式不正确！";
		return false;
	}
	/*if(isEmpty(document.getElementById(clid+"user_otname_tx").value)){
		alert("昵称不能为空！");
		return false;
	}*/
	document.getElementById("user_pass_checkspan").innerHTML="";
	if(isEmpty(document.getElementById(clid+"user_pass_tx").value)){
		document.getElementById("user_pass_checkspan").innerHTML="密码不能为空！";
		return false;
	}
	document.getElementById("confirm_pass_checkspan").innerHTML="";
	if(isEmpty(document.getElementById(clid+"confirm_pass_tx").value)){
		document.getElementById("confirm_pass_checkspan").innerHTML="确认密码不能为空！";
		return false;
	}
	if(document.getElementById(clid+"user_pass_tx").value!=document.getElementById(clid+"confirm_pass_tx").value){
		document.getElementById("confirm_pass_checkspan").innerHTML="密码不一致！";
		return false;
	}
	if(!document.getElementById("accpet_hcb").checked){
		alert("请同意注册协议！");
		return false;
	}
	accpet_hcb
	/*if(isEmpty(document.getElementById(clid+"user_quection_tx").value)){
		alert("寻密问题不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"user_answer_tx").value)){
		alert("问题答案不能为空！");
		return false;
	}*/
	return true;
}

function check_username(clid,obj)
{
	clid+="_";
	document.getElementById("user_name_checkspan").innerHTML="";
	if(!checkname(document.getElementById(clid+"user_name_tx").value)){
		document.getElementById("user_name_checkspan").innerHTML="<img src='images/false_ico.gif'>&nbsp;只能有字母或数字！";
		return false;
	}
	callserver(obj);
}

function check_email(clid)
{
	clid+="_";
	document.getElementById("user_email_checkspan").innerHTML="";
	if(!emailCheck(document.getElementById(clid+"user_email_tx").value)){
		document.getElementById("user_email_checkspan").innerHTML="<img src='images/false_ico.gif'>&nbsp;电邮格式不正确！";
		return false;
	}
	document.getElementById("user_email_checkspan").innerHTML="<img src='images/true_ico.gif'>&nbsp;格式正确。";
}

function check_confirm_pass(clid)
{
	clid+="_";
	document.getElementById("user_email_checkspan").innerHTML="";
	if(document.getElementById(clid+"user_pass_tx").value!=document.getElementById(clid+"confirm_pass_tx").value){
		document.getElementById("confirm_pass_checkspan").innerHTML="<img src='images/false_ico.gif'>&nbsp;密码不一致！";
		return false;
	}
	document.getElementById("confirm_pass_checkspan").innerHTML="<img src='images/true_ico.gif'>&nbsp;格式正确。";
}

function check_report(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("您的姓名不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	
	var probable_cbl_pass=false;
	for(var i=0;i<=3;i++){
	    if(document.getElementById(clid+"probable_cbl"+"_"+i).checked ==true){
	        probable_cbl_pass=true;
	    }
	}
	if(!probable_cbl_pass){
		alert("请选择不良因素！");
		return false;
	}
	
	if(isEmpty(document.getElementById(clid+"content_tx").value)){
		alert("具体情况不能为空！");
		return false;
	}
	return true;
}


function check_info(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"info_name_tx").value)){
		alert("公司名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"info_link_tx").value)){
		alert("URL不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"info_email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"info_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"info_pass_tx").value)){
		alert("密码不能为空！");
		return false;
	}
	return true;
}


function check_url_apply(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"url_name_tx").value)){
		alert("名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"url_link_tx").value)){
		alert("网址不能为空！");
		return false;
	}
	return true;
}

function check_url(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"url_name_tx").value)){
		alert("名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"url_link_tx").value)){
		alert("网址不能为空！");
		return false;
	}
	/*if(isEmpty(document.getElementById(clid+"url_mark_tx").value)){
		alert("标签不能为空！");
		return false;
	}*/
	return true;
}

function check_url_setp1(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"url_link_tx").value)){
		alert("网址不能为空！");
		return false;
	}
	return true;
}


function check_mess(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"mess_toname_tx").value)){
		alert("接受人不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"mess_fromname_tx").value)){
		alert("您的名称不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"mess_email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"mess_email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"mess_title_tx").value)){
		alert("标题不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"mess_content_tx").value)){
		alert("内容不能为空！");
		return false;
	}
	return true;
}

function check_heart(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"ht_text_tx").value)){
		alert("内容不能为空！");
		return false;
	}
	return true;
}


function check_advice(clid){
	clid+="_";
	if(isEmpty(document.getElementById(clid+"name_tx").value)){
		alert("您的姓名不能为空！");
		return false;
	}
	if(isEmpty(document.getElementById(clid+"email_tx").value)){
		alert("电邮不能为空！");
		return false;
	}
	if(!emailCheck(document.getElementById(clid+"email_tx").value)){
		alert("电邮格式不正确！");
		return false;
	}
	
	
	if(isEmpty(document.getElementById(clid+"content_tx").value)){
		alert("具体情况不能为空！");
		return false;
	}
	return true;
}