//KHEPRI 2003

<!-- Debut script
function openwindow(fichier,nom)
        {
        var win=window.open(fichier,nom,"toolbar=no,location=no,directories=no,menuBar=no,scrollbars=no,resizable=no,status=no,top=30,left=100,width=520,height=430");
        }
//  Fin script -->

<!--
function VERIFY() {

Display = "";
setTimeout(self.location='thanks.php',100);
        if(!VERIF_PRENOM_NOM())
                return false;
        if(!VERIF_ADRESSE())
                return false;
        if(!VERIF_CODEPOSTAL())
                return false;
        if(!VERIF_VILLE())
                return false;
        if(!VERIF_EMAIL())
                return false;
        if(!VERIFORMMAIL())
                return false;
          }
//  AUTRES VERIFICATIONS PARAMETRES

function VERIF_PRENOM_NOM() {
var str = document.commande.Prenom_Nom.value;
        if (str == ""){
        alert("VEUILLEZ INDIQUER VOTRE PRENOM ET NOM")
        document.commande.Prenom_Nom.focus() ;
        return false;
        }
Display   += "" + document.commande.Prenom_Nom.value
return true;
}


function VERIF_ADRESSE() {
var str = document.commande.Adresse.value;
        if (str == ""){
        alert("VEUILLEZ INDIQUER VOTRE ADRESSE")
        document.commande.Adresse.focus() ;
        return false;
        }
Display   += "" + document.commande.Adresse.value
return true;
}

function VERIF_CODEPOSTAL() {
var str = document.commande.Code_postal.value;
        if (str == ""){
        alert("VEUILLEZ INDIQUER VOTRE CODE POSTAL")
        document.commande.Code_postal.focus() ;
        return false;
        }
Display   += ", " + document.commande.Code_postal.value + "\n"
return true;
}

function VERIF_VILLE() {
var str = document.commande.Ville.value;
        if (str == ""){
        alert("VEUILLEZ INDIQUER VOTRE VILLE")
        document.commande.Ville.focus() ;
        return false;
        }
Display   += ", " + document.commande.Ville.value + "\n"
return true;
}

function VERIF_EMAIL() {
var str = document.commande.Email.value;
        if (str == ""){
        alert("VEUILLEZ INDIQUER VOTRE EMAIL")
        document.commande.Email.focus() ;
        return false;
        }
Display   += "" + document.commande.Email.value
return true;
}

function VERIFORMMAIL() {
if (commande.Email.value.indexOf('@')==-1 || mail.Email.value.indexOf('.')==-1)
          {
          alert("L\'EMAIL SAISIE EST INVALIDE.");
            document.commande.Email.focus();
            return false;
          }                }

// -->

<!--
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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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 VerifForm()
        {
        adresse = document.mailinglist.email.value;
        var place = adresse.indexOf("@",1);
        var point = adresse.indexOf(".",place+1);
        if ((place > -1)&&(adresse.length >2)&&(point > 1))
                {
                alert('L\'adresse email semble correcte, le script valide le formulaire');
                document.mailinglist.submit();
                }
        else
                {
                alert('Entrez une adresse e-mail valide!!');return false;
                }
        }
//-->
<!--
function Imprime() {
        if (document.commande.Prenom_Nom.value=="")
        {alert("VEUILLEZ INDIQUER VOTRE PRENOM ET NOM"); exit;}

        if (document.commande.Adresse.value=="")
        {alert("VEUILLEZ INDIQUER VOTRE ADRESSE"); exit;}

        if (document.commande.Code_postal.value=="")
        {alert("VEUILLEZ INDIQUER VOTRE CODE POSTAL"); exit;}

        if (document.commande.Ville.value=="")
        {alert("VEUILLEZ INDIQUER VOTRE VILLE"); exit;}

        if (document.commande.Email.value=="")
        {alert("VEUILLEZ INDIQUER VOTRE EMAIL"); exit;}

         else { window.print(); }
                    }
// -->
<!--
  document.writeln("<div id=\"jsWaitMessage\" style=\"font-family: Arial; font-size: 14px; color: Black; text-align: center; padding: 3px; position: absolute; left: 30%; top: 40%; height: 20px; width: 300px; z-index:3\"></div>");
  document.writeln("<div id=\"jsWaitArea\" style=\"display: none; position: absolute; left: 30%; top: 40%; height: 20px; width: 300px; border: 1px white solid; background: #8080FF;z-index:2\">");
  document.writeln("<div id=\"jsWaitBlock\" style=\"position: relative; left: 0px; height: 20px; width: 50px; background: Red;z-index:2\"></div>");
  document.writeln("</div>");

  jsWait_defaultInstance = null;

  function showWait(message)
  {
      jsWait_defaultInstance = new jsWait('jsWait_defaultInstance', message);
      jsWait_defaultInstance.show();
  }

  // -------------------------------------------
  //        Définition du type jsWait
  // -------------------------------------------

  /**
   * Constructeur
   * @param name le nom du composant
   * @param message le message a afficher
   */
  function jsWait(name, message)
  {
      this.name = name;
      this.message = message;
      this.speed = 10;
      this.direction = 2;

      this.waiting = false;

      this.divMessage = document.getElementById("jsWaitMessage");
      this.divArea = document.getElementById("jsWaitArea");
      this.divBlock = document.getElementById("jsWaitBlock");
  }


  // -------------------------------------------
  //        Méthodes publiques
  // -------------------------------------------

  jsWait.prototype.show = function()
  {
      this.divMessage.innerHTML = this.message;
      this.divMessage.style.display = "block";
      this.divArea.style.display = "block";
      this.divBlock.style.display = "block";
      this.divBlock.style.left = "0px";
      this.waiting = true;

      this.loop();
  }

  jsWait.prototype.setMessage = function(message)
  {
      this.message = message;
      this.divMessage.innerHTML = this.message;
  }

  jsWait.prototype.stop = function()
  {
      this.waiting = false;
      this.divMessage.style.display = "none";
      this.divArea.style.display = "none";
      this.divBlock.style.display = "none";
  }


  // -------------------------------------------
  //        Méthodes privées
  // -------------------------------------------

  jsWait.prototype.loop = function()
  {
      myLeft = this.divBlock.style.left;
      myLeft = myLeft.substring(0, myLeft.length-2);
      intLeft = parseInt(myLeft);

      if(intLeft >= 250)
          this.direction = -2;
      if(intLeft <= 0)
          this.direction = 2;

      myLeft = "" + (intLeft+this.direction) + "px";
      this.divBlock.style.left = myLeft;

      if(this.waiting)
          setTimeout(this.name + ".loop()", this.speed);
  }
//-->

