function formatTel(champNoTel){
	var noTel, i, charAutorises, newNoTel;
	noTel = champNoTel.value ;
	charAutorises = "0123456789" ;
	newNoTel="" ;
	for (i=0; i<noTel.length;i++)
	{
		temp = noTel.substr (i, 1) ;
		if (charAutorises.indexOf (temp)>=0) newNoTel+=temp;
	}
	champNoTel.value = newNoTel
}

function formatNum(champ){
	var nombre, i, charAutorises, newChamp;
	nombre = champ.value ;
	charAutorises = "0123456789" ;
	newChamp="" ;
	for (i=0; i<nombre.length;i++)
	{
		temp = nombre.substr (i, 1) ;
		if (charAutorises.indexOf (temp)>=0) newChamp+=temp;
	}
	champ.value = newChamp;
	if (champ.value=="") champ.value="0"
}


