function codeTouche(evenement)
{
	for (prop in evenement)
	{
		if(prop == 'which') return(evenement.which);
	}
	return(evenement.keyCode);
}

function scanTouche(evenement)
{
	var reCarValides	= /\x0D/;

	var codeDecimal		= codeTouche(evenement);
	var car				= String.fromCharCode(codeDecimal);
	var autorisation	= reCarValides.test(car);

	if(autorisation)return true;
	else return false;
}

function adjustLayout()
{
	// Get natural heights
	var cHeight = xHeight("contentcontent");
	var lHeight = xHeight("leftcontent");

	// Find the maximum height
	var maxHeight = Math.max(cHeight, Math.max(lHeight, 0));

	// Assign maximum height to all columns
	xHeight("partieCentrale", maxHeight);
	xHeight("partieGauche", maxHeight);
}
