function Ajax_userAddProject()
{
	content = '<form name="add_project" id="add_project" method="post" action="javascript:void(0);">'+
		'<div style="text-align:center"><p>'+
			'<label for="project_name">Nom du projet:</label> '+
			'<input type="text" name="project_name" id="project_name" /></p>'+
			'<p>'+
				'<label for="project_desc">Description du projet:</label><br />'+
				'<textarea name="project_desc" id="project_desc"></textarea>'+
			'</p>'+
		'</div>'+
		'<div class="fw_bottom"><button name="yes" id="yes">Valider</button> '+
		'<button name="no" id="no">Annuler</button></div></form>';
	title = 'Cr&eacute;ation d\'un projet';
	//if(idpro!=null&&idpro!=undefined) title = 'Modification d\'un projet';
	launchFloatingWindow(title,content,function() {
		$('div.floating_window').width(280);
		centerWindow('div.floating_window');
		$('div.floating_window button#yes').click(function() {
			var varpost = $('form#add_project').serialize();
			$.ajax({
				type: "POST",
				url: '/forum/js/get_script.php?obj=projects/addUserProject',
				dataType: 'xml',
				data: varpost,
				success: function(xml) {
					$('div.floating_window div.floating_win_content').empty();
					if($('response',xml).attr('successlog')==0)
					{
						$('div.floating_window div.floating_win_content').append('<div class="error">'+$('response',xml).text()+'</div>');
					}
					else
					{
						$('div.floating_window div.floating_win_content').append('<div class="success">'+$('response',xml).text()+'</div>');
						setTimeout('window.location.reload();',2500);
					}
				}
			});
		});
		$('div.floating_window button#no').click(function() {
			closeFloatingWindow();
		});
	});
}
