function lic_check_data()
{
    var licence_name = document.getElementById('licence_name');
    var licence_code = document.getElementById('licence_code');
    var licence_email = document.getElementById('licence_email');

	if (licence_name.value == "")
	{
		alert("客户名称不能为空！");
        licence_name.focus();
		return false;
	}
	if (licence_code.value == "")
	{
		alert("请求码不能为空！");
        licence_code.focus();
		return false;
	}
	if (licence_email.value == "")
	{
		alert("邮箱地址不能为空！");
        licence_email.focus();
		return false;
	}

    var exp = /^[0-9a-fA-F]{32}$/;
	if (!licence_code.value.match(exp))
	{
		alert("请求码错误！");
        licence_code.focus();
		return false;
	}

    var exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})$/;
	if (!licence_email.value.match(exp))
	{
		alert("邮箱地址错误！");
        licence_email.focus();
		return false;
	}

	return true;
}
