function tamany(Color)
{
	var altWindow;
	if(document.all){
		altWindow = document.body.clientHeight;
	}
	else{
		altWindow = innerHeight;
	}
	altWindow = altWindow - 105 + 8;
	var altText = document.getElementById("Contingut").offsetHeight + 50; 
	
	if(altText < altWindow){ 
		document.getElementById("Contingut").style.height = (altWindow - 52) + "px";	
		document.getElementById("Contingut").style.paddingRight = "20px";
		if(document.all)
		{
			document.getElementById("Contingut").style.width = document.getElementById("Contingut").offsetWidth + 40 + "px";
		}
		else
		{
			document.getElementById("Contingut").style.width = document.getElementById("Contingut").clientWidth + 5 + "px";
		}
		document.getElementById("Contingut").style.overflowY = "auto";
		document.getElementById("Contingut").className = "scroll" + Color;
	}
	else{
		document.getElementById("Contingut").style.height = (altWindow - 52) + "px";	
		document.getElementById("Contingut").style.paddingRight = "20px";
		if(document.all)
		{
			document.getElementById("Contingut").style.width = document.getElementById("Contingut").offsetWidth + 40  + "px";
		}
		else
		{
			document.getElementById("Contingut").style.width = document.getElementById("Contingut").clientWidth + 5 + "px";
		}		
		document.getElementById("Contingut").style.overflowY = "auto";
		document.getElementById("Contingut").className = "scroll" + Color;
	}
}
