function sendPass() {	var email = document.getElementById('login').value;	window.location = 'script_php_bdd_send_pass.php?login=' + email;}function confirmAlert(all) {	var message = (all) ? "à tous les distributeurs." : "aux distributeurs français.";	if (confirm("Veuillez confirmer l'envoi d'une alerte " + message)) {		window.location = 'script_php_bdd_send_alert.php?all=' + all;	}}function displayDates(session) {	for (var i = 1; i <= 4; i++) {		dates = document.getElementById('dates_'+i);		if (dates.name == 'Dates_'+session) {			dates.style.display = 'block';		} else {			dates.style.display = 'none';		}	}	//alert(session);}function get(id) {	return document.getElementById(id);}function moveRight() {	for (var i = 1; i <= 6; i++) {		if (get('s1_'+i).style.display != 'none') {			get('s1_'+i).style.display = 'none';			get('s1_'+(parseInt(i) + 6)).style.display = 'table-cell';						get('s2_'+i).style.display = 'none';			get('s2_'+(parseInt(i) + 6)).style.display = 'table-cell';			i = 7;		}	}}function moveLeft() {	for (var i = 6; i >= 1; i--) {		if (get('s1_'+i).style.display == 'none') {			get('s1_'+i).style.display = 'table-cell';			get('s1_'+(parseInt(i) + 6)).style.display = 'none';						get('s2_'+i).style.display = 'table-cell';			get('s2_'+(parseInt(i) + 6)).style.display = 'none';			i = 0;		}	}}function showPopup(id) {	for (i = 1; i <= 12; i++) {		var other = "popup1"+"_"+i+"_fr";		if (get(other)) {hidePopup(other);};		var other = "popup1"+"_"+i+"_en";		if (get(other)) {hidePopup(other);};		var other = "popup1"+"_"+i+"_es";		if (get(other)) {hidePopup(other);};				var other = "popup2"+"_"+i+"_fr";		if (get(other)) {hidePopup(other);};		var other = "popup2"+"_"+i+"_en";		if (get(other)) {hidePopup(other);};		var other = "popup2"+"_"+i+"_es";		if (get(other)) {hidePopup(other);};	}	var p = get(id);	p.style.display = 'block';}function hidePopup(id) {	var p = get(id);	p.style.display = 'none';}
