static public String createKeyName(String nom) throws InvalidNameException {
		final StringBuffer buff = new StringBuffer(nom.toLowerCase());
		String key = "";
		int i;

		for(i=0; i<buff.length(); i++)
		{
			final char c = buff.charAt(i);

			if( c >= 'a' && c <= 'z' )
			{
				key = key + c;
			}
			else if( c != '\'' && c != '-' && c != ' ' )
			{
				throw new InvalidNameException(c + " is an invalid character for names.");
			}
		}
		if( key.length() < 3 )
		{
			throw new InvalidNameException("Your name must have at least three alphabetic characters.");
		}
		else if( key.length() > 29 )
		{
			throw new InvalidNameException("Your name is too long.");
		}
		return key;
	}