/*******************************************************
POPUP ACTUALITES
*******************************************************/
function pop_actu(url) {
    nameW='Actualités';
	width = 617;
	height = 500;
	xTop = screen.width/2 - (width/2);
	yTop = screen.height/2 - (height/2);
	window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
}

/*******************************************************
POPUP ZOOM IMAGES
*******************************************************/
function zoom_photo(image,largeur,hauteur) {
	nameW = 'Zoom';
	url = 'zoom.php?img=' + image;
	width = largeur;
	height = hauteur;
	xTop = screen.width/2 - (width/2);
	yTop = screen.height/2 - (height/2);
	window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
}


/*******************************************************
POPUP ELIGIBILITE
*******************************************************/
function pop_eligibilite(url) {
    nameW='Eligibilité';
	width = 670;
	height = 850;
	xTop = screen.width/2 - (width/2);
	yTop = screen.height/2 - (height/2);
	window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
}


/*******************************************************
VERIFICATION N° TEL DSL
*******************************************************/
function verif_dsl(formulaire) {
	if (isNaN(formulaire.ndi.value)) {
		alert('Veuillez saisir un numéro de 10 chiffres, sans espace S.V.P.');
		return false;
	} else if (formulaire.ndi.value.length != 10) {
		alert('Veuillez saisir un numéro de 10 chiffres, sans espace S.V.P.');
		return false;
	} else {
		return true;
	}
}
