
// bloquer les erreurs
function blockError(){return true;}
window.onerror = blockError;

// cacher ou voir des layers
function masquer(layer){ 
    ObjLayer=new ConstructObject(layer) 
    ObjLayer.css.visibility='hidden' 
} 

function visualiser(layer){ 
    ObjLayer=new ConstructObject(layer) 
    ObjLayer.css.visibility='visible' 
} 

// Pop up
function PopupImage(img,titre) {
	w=open("",'image','width=200,height=200,toolbar=yes,scrollbars=yes,resizable=no,left=0');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+1,document.images[0].height+1); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

//
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
} 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}








<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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_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_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 voir(x)
{
x.style.display="";
}
function cacher(x)
{
x.style.display="none";
}
function cacher1(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11)
{
x1.style.display="none";
x2.style.display="none";
x3.style.display="none";
x4.style.display="none";
x5.style.display="none";
x6.style.display="none";
x7.style.display="none";
x8.style.display="none";
x9.style.display="none";
x10.style.display="none";
x11.style.display="none";
}


function FrontPage_Form1_Validator_cn(theForm)
{

  if (theForm.nom.value == "")
  {
    alert("Saisissez votre nom.");
    theForm.nom.focus();
    return (false);
  }

  if (theForm.prenom.value == "")
  {
    alert("Saisissez votre prenom.");
    theForm.prenom.focus();
    return (false);
  }
    if (theForm.mail.value == "")
  {
    alert("Saisissez votre adresse mail.");
    theForm.mail.focus();
    return (false);
  }
if (theForm.tel.value == "")
  {
    alert("Saisissez un numéro de téléphone ou on peut vous joindre.");
    theForm.tel.focus();
    return (false);
  }
 if (theForm.msg.value == "")
  {
    alert("Saisissez votre Message.");
    theForm.msg.focus();
    return (false);
  }

  return (true);
}

// inscription
function FrontPage_Form1_Validator_insc(theForm)
{

  if (theForm.nom.value == "")
  {
    alert("Saisissez votre nom.");
    theForm.nom.focus();
    return (false);
  }

  if (theForm.prenom.value == "")
  {
    alert("Saisissez votre prénom.");
    theForm.prenom.focus();
    return (false);
  }
    if (theForm.mail.value == "")
  {
    alert("Saisissez votre adresse E-mail.");
    theForm.mail.focus();
    return (false);
  }
if (theForm.tel.value == "")
  {
    alert("Saisissez un numéro de téléphone.");
    theForm.tel.focus();
    return (false);
  }
 if (theForm.pays.value == "")
  {
    alert("Saisissez votre pays.");
    theForm.pays.focus();
    return (false);
  }

  return (true);
}

function FrontPage_Form1_Validator_insc_en(theForm)
{

  if (theForm.nom.value == "")
  {
    alert("Please type your name.");
    theForm.nom.focus();
    return (false);
  }

  if (theForm.prenom.value == "")
  {
    alert("Please type your first name.");
    theForm.prenom.focus();
    return (false);
  }
    if (theForm.mail.value == "")
  {
    alert("Please type your E-mail adress.");
    theForm.mail.focus();
    return (false);
  }
if (theForm.tel.value == "")
  {
    alert("Please, type your phone number");
    theForm.tel.focus();
    return (false);
  }
 if (theForm.pays.value == "")
  {
    alert("Please type your country.");
    theForm.pays.focus();
    return (false);
  }

  return (true);
}


