function getResult(theForm)
{  
    var vtxt="";
    if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
        vtxt="过去和现在未感染过HBV。建议注射乙肝疫苗。";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
        vtxt="(1)既往感染未能测出抗-HBs；(2)恢复期HBsAg已消， 抗-HBs尚未出现；(3)无症状HBsAg携带着。";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
       vtxt="(1)既往感染过HBV；(2)急性HBV感染恢复期； (3)少数标本仍有传染性。 ①HBV感染已过；②抗HBs出现前的窗口期";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
       vtxt="(1)注射过乙肝疫苗有免疫；(2)既往感染；③假阳性";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
       vtxt="急性HBV感后康复。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="(1)急性HBV感染；(2)慢性HBsAg携带者；(3)传染性弱。";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="既往感染，仍有免疫力。HBV感染，恢复期。";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="感染HBV后，病毒已清除，无复制与传染性，且具有免疫力。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
       vtxt="(1)急性HBV感染趋向恢复；(2)慢性HBsAg携带者； (3)传染性弱。即俗称的“小三阳”。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="急性或慢性乙型肝炎感染。提示HBV复制，传染强。 即俗称的“大三阳”。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
       vtxt="(1)急性HBV感染早期,急性HBV感染潜伏期； (2)慢性HBV携带者，传染性弱。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
       vtxt="(1)慢性HBsAg携带者易转阴；(2)急性HBV感染趋向恢复。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
       vtxt="急性HBV感染早期或慢性携带者，传染性强。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
       vtxt="(1)急性HBV感染趋向恢复；(2)慢性携带者。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
       vtxt="(1)亚临床型HBV感染早期；(2)不同亚型HBV二次感染。";
    } 
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="(1)亚临床型HBV感染早期；(2)不同亚型HBV二次感染。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
       vtxt="亚临床型或非典型性感染。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
       vtxt="亚临床型或非典型性感染。";
    }
    else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
       vtxt="亚临床型或非典型性感染早期。 HBsAg免疫复合物，新的不同亚型感染。";
    }
    else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
  	   vtxt="(1)非典型性急性感染；(2)见于抗-HBc出现之前的 感染早期，HBsAg滴度低而呈阴性，或呈假阳性。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
  	   vtxt="非典型性急性感染。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
  	   vtxt="急性HBV感染中期。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="HBV感染后已恢复。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
  	   vtxt="非典型性或亚临床型HBV感染。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='+'){
  	   vtxt="非典型性或亚临床型HBV感染。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='-'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="急性HBV感染趋向恢复。";
  	}	
  	else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
  	   vtxt="①一种亚型的HBsAg及异型的抗HBs（常见）； ②血清从HBsAg转化为抗HBs的过程（少见）。";
  	}	
   	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	 
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='+'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	
  	else if(theForm.HBsAg.value=='-'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	
  	else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='-'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	
  	else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='-'&& theForm.HBcAb.value=='-'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	
  	else if(theForm.HBsAg.value=='+'&& theForm.HBsAb.value=='+'&& theForm.HBeAg.value=='+'&& theForm.HBeAb.value=='+'&& theForm.HBcAb.value=='-'){
  	   vtxt="罕见模式，尚未收录该指标的临床意义。";
  	}	
  	theForm.txtResult.value=vtxt;
  
  	theForm.txtResult.focus();
  	theForm.txtResult.select();
  	}
  	
String.prototype.Trim = function(){return this.replace(/^\s+|\s+$/g,"");}
function Check_Weight(theForm){
	var bmi,wht,het;
	 if ( theForm.yourweight.value.Trim()=="") {
                theForm.yourweight.focus();
                theForm.yourweight.select();
                alert("体重不能为空!");      
                return false; 
	 }    
	  if (theForm.yourheight.value.Trim()=="") {
                theForm.yourheight.focus();
                theForm.yourheight.select();
                alert("身高不能为空!");      
                return false; 
	 }   
	 	wht = theForm.yourweight.value;
	het = theForm.yourheight.value;
		 	  if (theForm.yourweight.value.Trim()>400||theForm.yourweight.value.Trim()<=0||isNaN(wht)) {
                theForm.yourweight.focus();
                theForm.yourweight.select();
                alert("请输入正确的体重数字!");      
                return false; 
	 }  
	 	  if (theForm.yourheight.value.Trim()>250||theForm.yourheight.value.Trim()<=0||isNaN(het)) {
                theForm.yourheight.focus();
                theForm.yourheight.select();
                alert("请输入正确的身高数字!");      
                return false; 
	 }   
	wht = theForm.yourweight.value;
	het = theForm.yourheight.value;
	bmi = wht/(het*het);
	var result = "您的体重指数（BMI）为"+ bmi.toFixed(2);
	if (bmi < 18.5) result += "，您的身体偏瘦,请注意加强营养! "; 
	else 
	if (bmi < 20) result += ", 您不胖不瘦，请继续保持！";
	else 
	if (bmi < 22) result += ", 恭喜！您体型非常完美!要继续保持哦! ";
	else 
	if (bmi < 23) result += ", 您不胖不瘦，请继续保持！";
	else 
	if (bmi < 25) result += ", 有些超重,要注意一下啊! ";
	else 
	if (bmi < 30) result += "，您有些胖了,加强锻炼控制饮食哦! ";
	else 
	if (bmi < 40) result += ", 您现在严重超重,建议在专业人士指导下控制体重! ";
	else result += ", 您现在极度超重,过度肥胖将极大影响健康! ";
	alert (result);
}
