function AfficherImage(img){
  Image1= new Image();
  Image1.src=(img);
  Control(img);
}
function Control(img){
  if((Image1.width!=0)&&(Image1.height!=0)){
    VoirImage(img);
  }
  else{
    fonction="Control('"+img+"')";
    intervalle=setTimeout(fonction,20);
  }
}
function VoirImage(img){
  largeur=Image1.width+20;
  hauteur=Image1.height+20;
  proprietes="width="+ largeur +",height="+ hauteur;
  win=window.open(img,"",proprietes);
}

function soumettre_panier() {
   var exist1 = document.getElementById("get_option1");
   var exist2 = document.getElementById("get_option2");

   if(exist1!=null) {if(document.getElementById("get_option1").value==0) {alert("vous devez sélectionner une couleur !");return false}}
   if(exist2!=null) {if(document.getElementById("get_option2").value==0) {alert("Vous devez sélectionner une couleur !");return false}}
   document.forms.add_panier.submit();
 }

function decouvrir(page,int_width,int_height){
  fenetre=window.open(page,"","width="+int_width+",height="+int_height+",left=0,top=0,toolbar=no, scrollbars=no, status=no")
  fenetre.creator=self
}

