﻿function CheckAddFAQInfo(departmentID,subject,content,code)
{
	if(departmentID.value=="-1")
	{
		alert("请选择科室！");
		departmentID.focus();
		return false;
	}

	if(subject.value=="")
	{
		alert("提问主题不能为空！");
		subject.focus();
		return false;
	}

	if(content.value=="")
	{
		alert("提问内容不能为空！");
		content.focus();
		return false;
	}

	if(code.value=="")
	{
		alert("验证码不能为空！");
		code.focus();
		return false;
	}
	return true;
}

function CheckAddCaseInfo(departmentID,subject,content,code)
{
	if(departmentID.value=="-1")
	{
		alert("请选择科室！");
		departmentID.focus();
		return false;
	}

	if(subject.value=="")
	{
		alert("标题不能为空！");
		subject.focus();
		return false;
	}

	if(content.value=="")
	{
		alert("病例内容不能为空！");
		content.focus();
		return false;
	}

	if(code.value=="")
	{
		alert("验证码不能为空！");
		code.focus();
		return false;
	}
	return true;
}

function CheckAddRegisterInfo(name,tel,idcard,code)
{
	if(name.value=="")
	{
		alert("患者姓名不能为空！");
		name.focus();
		return false;
	}

	if(tel.value=="")
	{
		alert("联系电话不能为空！");
		tel.focus();
		return false;
	}

	if(idcard.value=="")
	{
		alert("身份证号不能为空！");
		idcard.focus();
		return false;
	}

	if(code.value=="")
	{
		alert("验证码不能为空！");
		code.focus();
		return false;
	}
	return true;
}


