//验证准考证号是否为空
function client_check(txtZKZH)
{
	var ObjectZKZH = document.getElementById(txtZKZH);
	
	//准考证号验证
	if (ObjectZKZH == null || ObjectZKZH.value == "")
		return showError(' *准考号不能为空！');

	//是否符合长度规定
	if (ObjectZKZH.value.length < ObjectZKZH.maxLength)
		return showError(" *准考号长度为" + ObjectZKZH.maxLength + "，请重填！");

	//身份证与报名序号的检查
	var s = document.getElementById("txtSFZH");
	var b = document.getElementById("txtBMXH");
	if (s != null && b != null)
		if (s.value == "" && b.value == "")
			return showError(" *请填写报名序号或者身份证号！");

	return true;
}

//显示错误信息
function showError(msg)
{
	var Error = document.getElementById("Custom_txtZKZH");
	if (Error == null) return false;
	
	Error.style.diaplay = "inline";
	Error.style.color = "red";
	Error.innerHTML = msg;
	return false;
}
