<!--
/*==========================================
DrawImage成比例缩放图片
ImgD:图片ID，MaxLength:图片最大宽度
===========================================*/
function DrawImage(ImgD,MaxLength)
{
	var image=new Image();
	image.src=ImgD.src;
	if (ImgD.width>MaxLength)
	{
		ImgD.width=MaxLength;
		ImgD.height=(image.height*MaxLength)/image.width; 
	}
}

/*==========================================
SwitchTag舌签面板
id:舌答ID，num:当前舌签编号，count：舌签总数
===========================================*/
function SwitchTag(id,num,count)
{
	ClearTagClass(id,count);
	document.getElementById("tagname_" + id + num).className = "tagf";
	document.getElementById(id + num).style.display = "";
}
function ClearTagClass(id,count)
{
	for(i=1;i<=count;i++)
	{
		document.getElementById("tagname_" + id + i).className = "tagn";
		document.getElementById(id + i).style.display = "none";
	}
}
-->
