// JavaScript Document
function displayFlash(swf, hauteur, largeur, alternatif)
{
	document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+hauteur+'" height="'+largeur+'" wmode="transparent">');
	document.write('<param name="wmode" value="transparent" />'); 
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+swf+'" />');
	document.write(alternatif);
	document.write('</object>');
}


<!--

	var MM_contentVersion = 7;
				var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
				if ( plugin ){
					var words = navigator.plugins["Shockwave Flash"].description.split(" ");
					for (var i = 0; i < words.length; ++i)
					{
						if (isNaN(parseInt(words[i])))
							continue;
							var MM_PluginVersion = words[i]; 
					}
					var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
				}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
					document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
					document.write('on error resume next \n');	
					document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
					document.write('</SCR' + 'IPT\> \n');
				}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);




function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}







function VerifForm(){
	nom = document.form1.nom.value;
	tel = document.form1.tel.value;
	demande = document.form1.demande.value;
	/*adresse = document.form1.mail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1)&&(nom.length >1)&&(demande.length >1)&&(tel.length >6)){ */
	if ((nom.length >1)&&(demande.length >1)&&(tel.length >6)){
		document.form1.submit();
	}
	else{
		alert('Veuillez remplir correctement les champs Nom, téléphone et message !!');
	}
}

	function VerifTitre()
	{
	titre = document.form1.titre.value;
	if (titre.length >1)
		{
		document.form1.submit();
		}
	else
		{
		alert('Veuillez remplir le champs titre !!');
		}
	}

function MM_validateForm() { //v4.0
	var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
	for (i=0; i<(args.length-2); i+=3) {
		test=args[i+2];
		val=MM_findObj(args[i]);
		if (val)
		{
			nm=val.name;
			if ((val=val.value)!="")
			{
				if (test.indexOf('isEmail')!=-1) {
					p=val.indexOf('@');
					if (p<1 || p==(val.length-1)) errors+='- '+nm+' doit contenir une adresse mail.\n';
				}else if (test!='R') {
					num = parseFloat(val);
					if (isNaN(val)) errors+='- '+nm+' doit contenir un nombre.\n';
					if (test.indexOf('inRange') != -1) {
						p=test.indexOf(':');
						min=test.substring(8,p); max=test.substring(p+1);
						if (num<min || max<num) errors+='- '+nm+' doit contenir un nombre entre '+min+' et '+max+'.\n';
					}
				}
			}
			else if (test.charAt(0) == 'R') errors += '- '+nm+' est requis(e).\n';
		}
	}
	if (errors) alert('Erreur de formulaire :\n'+errors);
	document.MM_returnValue = (errors == '');
}




 <!-- FORMULAIRE PAYPAL !!!
  
    function test_champ(champ) {
      expr_reg = /^\d*$/ ;
      // Ci-dessus : expression régulière qui match 0,1 ou plusieurs chiffres ;
      // de cette façon on vérifie que l'utilisateur entre bien un nombre entier
      if ( expr_reg.test(champ.value) ) {
        // c'est bien un nombre entier
        calcul_form() ;
      } else {
        // ce n'est pas un nombre entier
        alert ("Ce n'est par un nombre entier !") ;
        document.form1.elements[champ.name].value = "" ;   // on efface la valeur entrée erronée
        calcul_form() ;
      }
    }
	
    
    function calcul_form() {
      // le with ci-dessous permet d'abréger "document.forms.form1.p1.value" en "p1.value"
      with (document.forms.form1) {
       // p1.value = q1.value * pu1.value ;
       // p2.value = q2.value * pu2.value ;
        //p3.value = q3.value * pu3.value ;
      //  total.value = p1.value *1 + p2.value *1 + p3.value *1 ;
		if(quantity.value<3){ shipping.value=3; }else{
		if(quantity.value<5){ shipping.value=6; }else{
		shipping.value=0;
		}
		}
		 
		 total.value = quantity.value * price.value + shipping.value*1;
           // Ai mis les *1 ci-dessus afin que les + fassent une somme arithmétique
           // et non pas une concaténation de chaînes de caractères
      }
    }
  
    function champ_verrouille(champ,valeur) {
           // Remarque : en HTML 4.0, il existe un attribut "read-only" pour la
           //            balise <INPUT TYPE=text> qui interdira de modifier un champ
           //            mais ce que je fais ci-dessous est beaucoup plus sûr !!!
      // alert ("Ce champ de peut pas être modifié !") ;
      document.form1.elements[champ.name].value = valeur ;   // on remet "valeur" initiale dans champ
    }
    
    function soumettre_form() {
		
      /*if ( document.forms.form1.amount.value < 10 ) {
        alert ("Vous n'avez pas choisi de formule d'adhésion \n => commande non soumise") ;
        return false ;
      } else {
		document.form1.method = "POST" ;
        document.form1.action = "https://www.paypal.com/fr/cgi-bin/webscr" ;
        return true ;
      }*/
    
		/*encode les éléments du formulaire en utf8 pour les transmettre à la page de paiement PayPal */

       /* document.forms.form1.elements["first_name"].value = encode_utf8(document.forms.form1.elements["first_name"].value);
        document.forms.form1.elements["last_name"].value = encode_utf8(document.forms.form1.elements["last_name"].value);
		document.forms.form1.elements["societe"].value = encode_utf8(document.forms.form1.elements["societe"].value);
		//document.forms.form1.elements["zip"] 
		document.forms.form1.elements["city"].value = encode_utf8(document.forms.form1.elements["city"].value);
		document.forms.form1.elements["state"].value = encode_utf8(document.forms.form1.elements["state"].value);
		//document.forms.form1.elements["night_phone_b"] 
		//document.forms.form1.elements["fax"]
		//document.forms.form1.elements["email"]
        document.forms.form1.elements["remarques"].value = encode_utf8(document.forms.form1.elements["remarques"].value);*/
	}
    
	
	function encode_utf8( s ){
	  return unescape( encodeURIComponent( s ) );
	}
	
	function decode_utf8( s ){
	  return decodeURIComponent( escape( s ) );
	}
	
	
	

function valider_formulaire(thisForm){	
if(thisForm.nom.value == ''){
alert('Le champ "Nom" doit être rempli');
thisForm.nom.focus();
return false;
}

if(thisForm.prenom.value == ''){
alert('Le champ "Prénom" doit être rempli');
thisForm.prenom.focus();
return false;
}

if(thisForm.email.value == ''){
alert('Le champ "E-Mail" doit être rempli');
thisForm.email.focus();
return false;
}

thisForm.email.value;
var mailtype = /^[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)*\.[\w\-]{2,}$/;
var champs = thisForm.email;
var reponse = mailtype.test(champs.value);
if (reponse) {
return true;
} else {
alert('Le champ "E-Mail" est invalide\n Veuillez saisir une adresse mail correcte\n( exemple: fdupont@gmail.com )');
thisForm.email.focus();
return false;
}	
return true;		
}

function valider_formulaire_en(thisForm){	
if(thisForm.nom.value == ''){
alert('The field "First name" must be filled');
thisForm.nom.focus();
return false;
}

if(thisForm.prenom.value == ''){
alert('The field "Laste name" must be filled');
thisForm.prenom.focus();
return false;
}

if(thisForm.email.value == ''){
alert('The field "E-mail" must be filled');
thisForm.email.focus();
return false;
}

thisForm.email.value;
var mailtype = /^[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)*\.[\w\-]{2,}$/;
var champs = thisForm.email;
var reponse = mailtype.test(champs.value);
if (reponse) {
return true;
} else {
alert('Invalid "E-Mail" ,Please enter a valid email address\n( exemple: myname@domaine.com )');
thisForm.email.focus();
return false;
}
	
return true;		
}	
  // -->