function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function verification(f){ 
	if(!/^.{3,24}$/.test(f.pseudo.value.replace(/\s/g,''))){ 
	alert("Le pseudo doit contenir entre 3 et 24 caracteres"); 
	return false}
}
function ouvrir(link)
{
	win = window.open(link, "popUp");
	win.focus();
}

function str_replace(search, replace, string){
	var array = string.split(search);
	return array.join(replace);
}

