function checkFunction(){
		//网上预约
		this.check =function (thisForm)
		{
			
			if ((thisForm.Memo.value.length == 0)||(thisForm.Memo.value =="您的留言") )  {
			alert("请输入您的留言!");
			thisForm.Memo.focus();
			return false;
			}
			thisForm.submit();
		} 
		//留言
		this.CheckForm = function(thisForm)
		{
				
			if ((thisForm.question.value.length == 0)||(thisForm.question.value =="一个认真的留言，改变一生的命运！有问必答") )  {
			alert("请输入咨询内容!");
			thisForm.question.focus();
			return false;
			}
			thisForm.submit();
		}
		//搜索；
		this.checkSearch = function(thisForm){
			if(thisForm.search.value.length<1){
				alert('请输入要搜索的内容!');
				thisForm.search.focus();
				return false;
			}
		}
		//乙肝两对半测试
		this.testliver =function (thisForm){
			var c1 = thisForm.c1.value;
			var c2 = thisForm.c2.value;
			var c3 = thisForm.c3.value;
			var c4 = thisForm.c4.value;
			var c5 = thisForm.c5.value;
				if (c1 == 0 && c2 == 0 && c3 == 0 && c4 == 0 && c5 == 0) {  
				//1、五项全阴性
				thisForm.liver.value = "过去和现在均未感染HBV。";
					return false;
				}
				if (c1 == 0 && c2 == 0 && c3 == 0 && c4 == 0 && c5 == 1) {
				//2、第五项阳性，第一、二、三、四项全阴性
				thisForm.liver.value = "曾感染HBV或急性感染恢复期。";
					return false;
				}
				if (c1 == 0 && c2 == 0 && c3 == 0 && c4 == 1 && c5 == 1) {
				//3、第四、五项全阳性，第一、二、三全阴性
				thisForm.liver.value = "过去和现在均已感染过HBV。";
					return false;
				}
				if (c1 == 0 && c2 == 1 && c3 == 0 && c4 == 0 && c5 == 0) {
				//4、第二项阳性，第一、三、四、五项全阴性
				thisForm.liver.value = "预防注射疫苗；或HBV感染已康复。";
					return false;
				}
				if (c1 == 0 && c2 == 1 && c3 == 0 && c4 == 1 && c5 == 1) { 
				// 5、第二、四、五全阳性，第一、三全阴性
				thisForm.liver.value = " 既往感染或急性HBV感染恢复期。";
					return false;
				}
				if (c1 == 0 && c2 == 1 && c3 == 0 && c4 == 0 && c5 == 1) {
				//6、第二、五项全阳性，第一、三、四项全阴性
				thisForm.liver.value = "既往感染或急性HBV感染已恢复。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 0 && c4 == 0 && c5 == 1) {  
				//7、第一、五项全阳性，第二、三、四项全阴性
				thisForm.liver.value = "急性HBV感染或慢性HBsAg携带者。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 0 && c4 == 1 && c5 == 1) {  
				//8、第一、四、五项全阳性，第二、三项全阴性
				thisForm.liver.value = "急性HBV感染趋向恢复；慢性HBsAg 携带者，传染性弱；长期持续易癌变（即所说的小三阳）。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 1 && c4 == 0 && c5 == 1) {  
				//9、第一、三、五项全阳性，第二、四项全阴性
				thisForm.liver.value = "急性或慢性乙肝，传染性极强（即所说的大三阳)。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 0 && c4 == 0 && c5 == 0) {  
				//10、第一项阳性，第二、三、四、五全阴性
				thisForm.liver.value = "急性HBV感染早期或HBsAg携带者。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 1 && c4 == 0 && c5 == 0) {  
				//11、第一、三项全阳性，第二、四、五项全阴性
				thisForm.liver.value = "急性HBV感染早期，传染性强。";
					return false;
				}
				if (c1 == 0 && c2 == 0 && c3 == 1 && c4 == 1 && c5 == 1) {  
				//12、第三、四、五项全阳性，第一、二项全阴性
				thisForm.liver.value = "急性感染中期。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 1 && c4 == 1 && c5 == 1) {  
				//13、第一、三、四、五项全阳性，第二项阴性
				thisForm.liver.value = "急性感染趋向恢复或慢性携带者。";
					return false;
				}
				if (c1 == 1 && c2 == 0 && c3 == 0 && c4 == 1 && c5 == 0) {  
				//14、第一、四项全阳性，第二、三、五项全阴性
				thisForm.liver.value = "急性感染趋向恢复。";
					return false;
				}
				if (c1 == 0 && c2 == 0 && c3 == 0 && c4 == 1 && c5 == 0) {  
				//15、第四项阳性，第一、二、三、五项全阴性
				thisForm.liver.value = "急性感染趋向恢复。";
					return false;
				}
				if (c1 == 0 && c2 == 1 && c3 == 0 && c4 == 1 && c5 == 0) {  
				//16、第二、四项全阳性，第一、三、五项全阴性
				thisForm.liver.value = "HBV感染已恢复。";
					return false;
				}
				thisForm.liver.value = "化验单错误，请到正规医院检查。";
				return false;
			}
}
