
function set_img( obj, width, height )
	{
	var i = new Image(); i.src = obj.src;
	if(i.width > i.height)
		{
			if(i.width > width)
				{
					obj.style.width = width;
				}
			else
				{
			//	alert(i.width)
					obj.style.width = 60;
				}
		}
	else
		{
			if(i.height > height)
				{
					obj.style.height = height;
				}
			else
				{
					obj.style.height = 60;
				}
		}
}
