function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function go_to(siteump)
{
		window.open(siteump.destination.options[siteump.destination.selectedIndex].value,"_blank");	
}
function verifinscription(frm) {
	var r="";
    if (document.frm.prenom.value=="") r+=" - Prénom est obligatoire.\n";
	if (document.frm.nom.value=="") r+=" - Nom est obligatoire.\n";
	if (document.frm.adresse1.value=="") r+=" - Adresse est obligatoire.\n";
	if (document.frm.code_postal.value=="") {
		r+=" - Code postal est obligatoire.\n";
	} else {
		if (/[0-9]+/.test(document.frm.code_postal.value)==false) r+=" - Code postal n'est pas valide.\n";
	}
	if (document.frm.ville.value=="") r+=" - Ville est obligatoire.\n";
	if (document.frm.email.value=="") {
		r+=" - E-mail est obligatoire.\n";
	} else {
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,6})+$/.test(document.frm.email.value)==false) r+="- E-mail n'est pas valide.\n";
	}
	if (r!="") {
		alert("Les erreurs suivantes se sont produites:\n\n"+r);
		return false;
	} else {
		return true;
	}
}
function SelectPays()
{
champ = document.frm.pays;
toto = champ.options[champ.selectedIndex].value;
return(toto);
}

function SelectCivilite()
{
champ = document.frm.civilite;
civil = champ.options[champ.selectedIndex].value;
return(civil);
}
function RoundImage(id_image)
  {
      validTags: ["div", "form"]
      settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 5 },
          br: { radius: 5 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      }
      var myBoxObject = new curvyCorners(settings, id_image);
      myBoxObject.applyCornersToAll();
  }
  
function ViewFlash(lien){
window.open(lien,'_blank','width=775,height=660,toolbar=no,location=no, directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}