function zoom(it)
{
	var h = 50;
	var w = 100;
	it.width = w;
	it.height = h;
	return;
	if (it.height>50)
	{
		h=50;
		w =50 * per;
		it.width = w;
		it.height = h;
		return;
	}
	if (it.width>100)w=100;

	if (it.height>50)
	{
		if(it.width>100)
		var h = 50;
		it.style.zoom=100/(it.height>it.width?it.height:it.width);
	}
}
function setlogo(real_width,real_height)
{
	var width = 100;	//系统定义 宽
	var height = 50;	//系统定义 高
			
	//var real_width = "95";	//图片实际 宽
	//var real_height = "45";	//图片实际 高
			
	if(real_width <= width && real_height <= height)
	{
		document.getElementById('logo').style.width = real_width + 'px';
		document.getElementById('logo').style.height = real_height + 'px';
	}
	else
	{
		var result_width = 0;	//最后显示 宽
		var result_height = 0;	//最后显示 高
				
		if(real_width * height >= real_height * width) 
		{
			var result_width = width;
			var result_height = real_height * result_width/real_width;
			document.getElementById('logo').style.width = result_width + 'px';
			document.getElementById('logo').style.height = result_height + 'px';
		} 
		else
		{
			var result_height = height;
			var result_width = real_width * result_height / real_height;
			document.getElementById('logo').style.width = result_width + 'px';
			document.getElementById('logo').style.height = result_height + 'px';
		}
	}			
	//更新2个td的宽度，是页面不被撑开
	//document.getElementById('logo_td1').style.width = '20%';
	//document.getElementById('logo_td2').style.height = '60%';
}
