function SetCookie(Nom, Valeur, Expire)
{
	var Today = new Date();
	Today.setDate (Today.getDate() + Expire);
	document.cookie = Nom + "=" + escape(Valeur) + 
			((Expire == null) ? "" : ";expires=" + Today.toGMTString());
}

function ChangerDesign ()
{
	var Design = document.getElementById('design').value;
	SetCookie ('design', Design, 365);
	window.location.href = window.location.href;
}

function ChangerLang (lang_value)
{
	SetCookie ('lang', lang_value, 365);
	window.location.href = window.location.href;
}
