// JavaScript Document

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

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 e-mail.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' doit être un chiffre.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' doit être un chiffre entre '+min+' et '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' est un champ obligatoire.\n'; }
  } if (errors) alert('Prochaine(s) faute(s) ce sont produites:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function printThis(){
if (!window.print){
alert("You need a 4.x browser or better to use this print button!")
return
}
window.print()
}

function popupWin(url,something,properties){
	popup = window.open(url,something,properties);
	}
	
function a()
	{
	window.open('a2.jpg','_blank',['width=630,height=185,top=0,left=0']);
	}
function b()
	{
	window.open('a3.jpg','_blank',['width=370,height=330,top=0,left=0']);
	}
function c()
	{
	window.open('a4.jpg','_blank',['width=470,height=360,top=0,left=0']);
	}
function d()
	{
	window.open('images/sj-1150-s.jpg','_blank',['width=600,height=800,top=0,left=0']);
	}
function e()
	{
	window.open('images/surjeteuse-1350-b.jpg','_blank',['width=600,height=800,top=0,left=0']);
	}
function f()
	{
	window.open('images/scan012.jpg','_blank',['width=600,height=800,top=0,left=0']);
	}
function g()
	{
	window.open('images/Jan1600P.jpg','_blank',['width=800,height=1149,top=0,left=0']);
	}
function h()
	{
	window.open('images/340-big.jpg','_blank',['width=600,height=800,top=0,left=0']);
	}
function k()
	{
	window.open('images/1088-b.jpg','_blank',['width=1000,height=750,top=0,left=0']);
	}
function l()
	{
	window.open('images/200-b.jpg','_blank',['width=1128,height=859,top=0,left=0']);
	}
function m()
	{
	window.open('images/730-b','_blank',['width=1000,height=750,top=0,left=0']);
	}
function o()
	{
	window.open('images/430-b01.jpg','_blank',['width=1000,height=750,top=0,left=0']);
	}
	
function p()
	{
	window.open('images/JAn350E.jpg','_blank',['width=800,height=1149,top=0,left=0']);
	}
function r()
	{
	window.open('images/JBM4b.jpg','_blank',['width=1128,height=766,top=0,left=0']);
	}
	
function g2()
	{
	window.open('images/Jan3030.jpg','_blank',['width=337,height=480,top=0,left=0']);
	}	
function k2()
	{
	window.open('images/1088-b.jpg','_blank',['width=1000,height=750,top=0,left=0']);
	}
function l2()
	{
	window.open('images/200-b.jpg','_blank',['width=1128,height=859,top=0,left=0']);
	}
function m2()
	{
	window.open('images/730-b.jpg','_blank',['width=1000,height=750,top=0,left=0']);
	}
function o2()
	{
	window.open('images/430-b01.jpg','_blank',['width=1000,height=750,top=0,left=0']);
	}
function p2()
	{
	window.open('images/Jan405.jpg','_blank',['width=1128,height=787,top=0,left=0']);
	}
function q2()
	{
	window.open('images/Jan525S.jpg','_blank',['width=1129,height=1426,top=0,left=0']);
	}
function r2()
	{
	window.open('images/Jan1000CP.jpg','_blank',['width=1215,height=1694,top=0,left=0']);
	}
function s2()
	{
	window.open('images/Jan11000.jpg','_blank',['width=800,height=375,top=0,left=0']);
	}
function t2()
	{
	window.open('images/Ber630_640.jpg','_blank',['width=750,height=1096,top=0,left=0']);
	}
	
function b3()
	{
	window.open('images/a3.jpg','_blank',['width=370,height=330,top=0,left=0']);
	}
function d3()
	{
	window.open('images/sj-1150-s.jpg','_blank',['width=600,height=800,top=0,left=0']);
	}
function e3()
	{
	window.open('images/Ber2500D.jpg','_blank',['width=1128,height=1545,top=0,left=0']);
	}
function q3()
	{
	window.open('images/Ber1300.jpg','_blank',['width=800,height=1074,top=0,left=0'],'scrollbars=yes');
	}