// JavaScript Document
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function OpenCenterPopUp(){	
	var Left=window.screen.width/2-175;
	var Top=window.screen.height/2-175;
	var Configuration="'toolbar=no, menubar=no, location=no, directories=no, status=no, resizeable=no, width=425, height=350, left=" + Left + ", top=" + Top;
	window.open('pop_famille.php','Famille',Configuration);
}

function Check_frm_contact(f){
	if(f.frm_contact_nom.value==""){
		alert("Merci de saisir votre nom.");
		f.frm_contact_nom.focus();
		return false;
	}
	if(f.frm_contact_pnom.value==""){
		alert("Merci de saisir votre prenom.");
		f.frm_contact_pnom.focus();
		return false;
	}
	if(f.frm_contact_email.value==""){
		alert("Merci de saisir votre adresse email.");
		f.frm_contact_email.focus();
		return false;
	}
	var x = f.frm_contact_email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(x))
	{
		alert("L'adresse email n'est pas correcte (ie. xxx@xxx.xx)");
		f.frm_contact_email.focus();
		return false;
	}
	if(f.frm_contact_msg.value==""){
		alert("Merci de saisir votre message.");
		f.frm_contact_msg.focus();
		return false;
	}
	return true;
}
