function deconnecter(){

	if (confirm("Etes vous sûr de vouloir vous déconnecter ?")) {
		deconnexion = window.location.protocol + "//" + window.location.hostname + "/espaceclients/deconnexion.php";
		window.location.href = deconnexion;
	}
}

function Deplacer(l1,l2) {
	if (l1.options.selectedIndex>=0) {
		o=new Option(l1.options[l1.options.selectedIndex].text,l1.options[l1.options.selectedIndex].value);
		l2.options[l2.options.length]=o;
		l1.options[l1.options.selectedIndex]=null;
	}else{
		alert("Aucune valeur sélectionnée");
	}
}

function selectAll(box) {
   for(var i=0; i< box.options.length; i++)  {
      box.options[i].selected = true;
   }
}

function hideShow(id) {

	var etat = document.getElementById(id).style.display
	if (etat == 'block') {
		document.getElementById(id).style.display = 'none'	
	} else {
		document.getElementById(id).style.display = 'block'	
	}
}

function masqueMessage() {

	if (document.getElementById('message') != null) {
		document.getElementById('message').style.display='none'
	}

}

function patienter() {
	document.getElementById('patienter').style.display='block'
}
function masquer_patienter() {
	document.getElementById('patienter').style.display='none'
}

function download(file) {
	racine = window.location.protocol + "//" + window.location.hostname + "/";
	window.location.href = racine + "espaceclients/commun/download.php?file=" + file;

}

