function popupImageWindow(monImage, monTitre)
  {
  if (monTitre==null) monTitre='';
  w = window.open('','chargement','width=10,height=10');
  w.document.write( "<html><head><title>"+monTitre+"</title>n" ); 
  w.document.write( "<script language='JavaScript'>n"); 
  w.document.write( "IE5=NN4=NN6=false;n"); 
  w.document.write( "if(document.all)IE5=true;n"); 
  w.document.write( "else if(document.getElementById)NN6=true;n"); 
  w.document.write( "else if(document.layers)NN4=true;n"); 
  w.document.write( "function autoSize() {n"); 
  w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31)n"); 
  w.document.write( "else if(NN6) self.sizeToContent();n");
  w.document.write( "else window.resizeTo(document.images[0].width,document.images[0].height+20)n"); 
  w.document.write( "self.focus();n"); 
  w.document.write( "}n</scri");
  w.document.write( "pt>n"); 
  w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'>" );
  w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 alt='"+monTitre+"'></a>" ); 
  w.document.write( "</body></html>" );
  w.document.close(); 
  }
  
  function setHover(){  

}



function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  form=args[0];
  for (i=1; i<(args.length-2); i+=3) { test=args[i+2];   
  val=document.forms[form][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 valide.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 manquant.n'; }
  } if (errors) alert('Certains champs sont obligatoires:n'+errors);
   document.MM_returnValue = (errors == '');
}


function affiche_photo(url,id){
//pos=FindPos(document.getElementById(id));
document.getElementById("conteneur_timbre").style.visibility='visible';
//document.getElementById("conteneur_timbre").style.left=pos['X']-200;
//document.getElementById("conteneur_timbre").style.top=pos['Y']-120;
document.getElementById("img_timbre").src='images/attente.gif';
document.getElementById("img_timbre").src=url;
}

function masque_photo(){
//document.getElementById("conteneur_timbre").style.visibility='hidden';
document.getElementById("img_timbre").src='images/attente.gif';
}














