// JavaScript Document

function affiche_mission(code)
{
	var req = new Ajax.Updater('references',"ajax/references.php",
	{
			method : 'post',
			parameters: {code:code},
			onComplete : complete()
	});	
	new Effect.ScrollTo('references');
	//new Effect.Opacity('references', {duration:2, fps:25, from:0.0, to:1.0});
}

function affiche_all_mission(id)
{
	var req = new Ajax.Updater('references',"ajax/all_references.php",
	{
			method : 'post',
			parameters: {id:id},
			onComplete : complete()
	});	
	
}

function affiche_mission_by_type(id_departement,id_type)
{
	
	var by_type = new Ajax.Updater('references',"ajax/references_by_type.php",
	{
			method : 'post',
			parameters: {id_departement : id_departement,
						id_type : id_type},
			onComplete : complete()
	});
	
}

function complete ()
{
	//new Effect.Opacity('references', {duration:2, fps:25, from:0.0, to:1.0});
}