// Verif du format de l'email
function checkEmail() {
	if ((document.formEmail.email.value.indexOf ('@') == -1)||(document.formEmail.email.value.indexOf ('.') == -1)) {
		alert('Veuillez saisir une adresse email valide !');
		document.formEmail.email.focus();
	} else {
		document.formEmail.submit();
	}
}
//
function setTall() {
	if (document.getElementById) {
		var divs = new Array(document.getElementById('left'), document.getElementById('right'));
		var maxHeight = 0;
		for (var i = 0; i < divs.length; i++) {
			if (divs[i].offsetHeight > maxHeight) maxHeight = divs[i].offsetHeight;
		}
		for (var i = 0; i < divs.length; i++) {
			divs[i].style.height = maxHeight + 'px';
			if (divs[i].offsetHeight > maxHeight) {
				divs[i].style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
			}
		}
	}
}

function openPopupCenteredWindow(popupUrl, popupName, popupWidth, popupHeight, params) {
	var windowWidth = window.screen.width;
	var windowHeight = window.screen.height;
	var leftPos = (windowWidth - popupWidth) / 2;
	var topPos = ((windowHeight - popupHeight) / 2) - 50;
	window.open(popupUrl, popupName, 'width='+popupWidth+',height='+popupHeight+',left='+leftPos+',top=' + topPos +','+ params);
}