// JavaScript Document
function PopUpSizeResizable(PageURL, strName, iwidth, iheight) {
	var strProperties;
	
	strProperties = 'width=' + iwidth + ',height=' + iheight;
	strProperties = strProperties + ',left=100,top=100,directories=0,hotkeys=1,location=0,menubar=0';
	strProperties = strProperties + ',resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,closed=0,opener=0';       
	return window.open(PageURL, strName, strProperties);
}

function OpenPage(strPageURL) {
	var pPage = PopUpSizeResizable(strPageURL,'infos', 570, 370) ;
}
	
function Verifie_Rappel(lien) {
	var modele=/^[0-9]*$/;
	
	if (document.form_rappel.rappel_nom.value=="") {
		alert("Merci d'indiquer votre nom");
	}
	else {
		chaine = document.form_rappel.rappel_phone.value;
		if ((!(modele.test(chaine))) || (chaine.length!=10)) {
			alert("Téléphone incorrect : 10 chiffres sans point ni espace SVP");
			document.form_rappel.rappel_phone.focus();
		}		
		else  {
			//alert('ok');
			document.form_rappel.action = lien;
			document.form_rappel.submit();
		}
	}
}
var FenMMA_CVMH;

function GoMMA(lien) {
	FenMMA_CVMH=window.open("mma-site.php?lien="+lien,'MMA','');
}
function PopUpRetour() {
	var window2=window.open('popup_retour.html','PopUp','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=360,height=130,top=0,left=0');
}
function Fermer() {
       //if (FenMMA.document) { 
	   	//FenMMA.close(); 
		//alert('ll');
	   //}
	   if (FenMMA_CVMH.document) FenMMA_CVMH.close();
	   //FenMMa = null;
    }	