function validateNewAddress()
{
	var formdatas = Form.serialize('formNewAddress');
	
	var mandatory = new Array( 'title', 'address', 'country', 'city', 'post_code' );
	
	if( checkFormFieldsOk( 'formNewAddress', mandatory ) )
	{
		//Lorsque l'utilisateur clicke sur "valider" dans le formulaire enregistrement
		new Ajax.Request(
		    '/MySpace/AddNewAddress?'+formdatas,
		    {
		        method: 'post',
		        onSuccess: function( xx ){
		        	
			        if( xx.responseText.substring( 0, 7 ) == 'SUCCESS' )
			        {
			        	//index 0 = login, index 1 = pass
			        	//var phrase = xx.responseText.substring( 8, xx.responseText.length ).split( '#' );
			        	personalSpaceLinkFollow( '/MySpace/ManageMyAdresses');
			        }
	    			else
	    			{
	    				var errorPhrase = xx.responseText.substring( 8, xx.responseText.length );
	    				alert( errorPhrase );
	    			}
	    			
		        }
			}
		); 	
	}
	else
	{
		alert('Vous devez remplir toutes les informations');
	}
}
