function leftdis(id)
{
			if(id==''||id=='f1'||id=='f2')
			{
				$("#f1").fadeIn(500);
				window.document.getElementById('f1').className = "leftfam_list";
//				$("#aa1").html("<img src='templates/default/images/fm-yxzx.jpg' />");
			}
			else
			{
				$("#f1").fadeOut(500);
				
				window.document.getElementById('f1').className = "leftfam_nolist";
//				$("#aa1").html("<img src='templates/default/images/f-yxzx.jpg' />");
			}
			if(id==''||id=='f1'||id=='f2')
			{
				$("#f2").fadeIn(500);
				window.document.getElementById('f2').className = "leftfam_list";
//				$("#aa2").html("<img src='templates/default/images/fm-zdxk.jpg' />");
			}
			else
			{
				$("#f2").fadeOut(500);
				window.document.getElementById('f2').className = "leftfam_nolist";
//				$("#aa2").html("<img src='templates/default/images/f-zdxk.jpg' />");
			}
			if(id=='f3')
			{
				$("#f3").fadeIn(500);
				window.document.getElementById('f3').className = "leftfam_list";
//				$("#aa3").html("<img src='templates/default/images/fm-ghzd.jpg' />");
			}
			else
			{
				$("#f3").fadeOut(500);
				window.document.getElementById('f3').className = "leftfam_nolist";
//				$("#aa3").html("<img src='templates/default/images/f-ghzd.jpg' />");
			}
			if(id=='f4')
			{
				$("#f4").fadeIn(500);
				window.document.getElementById('f4').className = "leftfam_list";
//				$("#aa4").html("<img src='templates/default/images/fm-lcks.jpg' />");
			}
			else
			{
				$("#f4").fadeOut(500);
				window.document.getElementById('f4').className = "leftfam_nolist";
//				$("#aa4").html("<img src='templates/default/images/f-lcks.jpg' />");
			}
			if(id=='f5')
			{
				$("#f5").fadeIn(500);
				window.document.getElementById('f5').className = "leftfam_list";
//				$("#aa5").html("<img src='templates/default/images/fm-yjks.jpg' />");
			}
			else
			{
				$("#f5").fadeOut(500);
				window.document.getElementById('f5').className = "leftfam_nolist";
//				$("#aa5").html("<img src='templates/default/images/f-yjks.jpg' />");
			}

	}

function leftdis_1(id)
{
			if(id=='f1')
			{
				$("#f1").fadeIn(500);
				window.document.getElementById('f1').className = "leftfam_list";
//				$("#aa1").html("<img src='templates/default/images/fm-yxzx.jpg' />");
			}
			else
			{
				$("#f1").fadeOut(500);
				
				window.document.getElementById('f1').className = "leftfam_nolist";
//				$("#aa1").html("<img src='templates/default/images/f-yxzx.jpg' />");
			}
			if(id=='f2')
			{
				$("#f2").fadeIn(500);
				window.document.getElementById('f2').className = "leftfam_list";
//				$("#aa2").html("<img src='templates/default/images/fm-zdxk.jpg' />");
			}
			else
			{
				$("#f2").fadeOut(500);
				window.document.getElementById('f2').className = "leftfam_nolist";
//				$("#aa2").html("<img src='templates/default/images/f-zdxk.jpg' />");
			}
			if(id=='f3')
			{
				$("#f3").fadeIn(500);
				window.document.getElementById('f3').className = "leftfam_list";
//				$("#aa3").html("<img src='templates/default/images/fm-ghzd.jpg' />");
			}
			else
			{
				$("#f3").fadeOut(500);
				window.document.getElementById('f3').className = "leftfam_nolist";
//				$("#aa3").html("<img src='templates/default/images/f-ghzd.jpg' />");
			}
			if(id=='f4')
			{
				$("#f4").fadeIn(500);
				window.document.getElementById('f4').className = "leftfam_list";
//				$("#aa4").html("<img src='templates/default/images/fm-lcks.jpg' />");
			}
			else
			{
				$("#f4").fadeOut(500);
				window.document.getElementById('f4').className = "leftfam_nolist";
//				$("#aa4").html("<img src='templates/default/images/f-lcks.jpg' />");
			}
			if(id=='f5')
			{
				$("#f5").fadeIn(500);
				window.document.getElementById('f5').className = "leftfam_list";
//				$("#aa5").html("<img src='templates/default/images/fm-yjks.jpg' />");
			}
			else
			{
				$("#f5").fadeOut(500);
				window.document.getElementById('f5').className = "leftfam_nolist";
//				$("#aa5").html("<img src='templates/default/images/f-yjks.jpg' />");
			}

	}
	
	function clearValue(nm)
	{
		var iv;
		iv= document.getElementById(nm).value;
		if(iv==" 按科室名称查询"&&nm=="ks"||iv=="按医生姓名查询"&&nm=="hname"||iv==" 按出诊时间查询"&&nm=="wtime"||iv=="请输入您要查找的内容"&&nm=="search_web")
		{	
			document.getElementById(nm).value = "";
		}	
		
	}
	
	function ifClear(m)
	{
		var iv;
		iv = document.getElementById(m).value;
		if(iv=="")
		{
			if(m=="ks")
			{
				document.getElementById(m).value=" 按科室名称查询";
			}
			if(m=="hname")
			{
				document.getElementById(m).value="按医生姓名查询";	
			}
			if(m=="wtime")
			{
				document.getElementById(m).value=" 按出诊时间查询";	
			}
			if(m=="search_web")
			{
				document.getElementById(m).value="请输入您要查找的内容";	
			}	
		}	
	}
	
	function changefont2low()
	{
		document.getElementById('textcontent').style.fontSize = "12px";
		document.getElementById('smallfont').style.color = "#CCC";
		document.getElementById('bigfont').style.color = "blue";
	}

	function changefont2big()
	{
		document.getElementById('textcontent').style.fontSize = "16px";
		document.getElementById('smallfont').style.color = "blue";
		document.getElementById('bigfont').style.color = "#CCC";
	}
function chgfont(span,size,height){
	if(!$(span).hasClass('old')){
		$(span).removeClass('current');
		$('.chgfont span.old').addClass('current');
		$('.chgfont span.old').removeClass('old');
		$(span).addClass('old');
		$('.contentBox').attr('style','font-size:'+size+'px;line-height:'+height+'px');
	}
}


