function popup(url) {

fiche = window.open(url,"fiche","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=850,height=300");
if(navigator.appVersion.indexOf("4") != -1){
            fiche.moveTo(0,0);
        }
}
function popup2(url) {

fiche = window.open(url,"fiche","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=150");
if(navigator.appVersion.indexOf("4") != -1){
            fiche.moveTo(0,0);
        }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



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_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_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function Formulaire_Validator(theForm)
  {
  if (theForm.nom.value == "")
  {
	alert("Tapez une valeur pour le champ \"Nom\".");
    theForm.nom.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_prendrerdv.php';
  return (true);

}

function Formulaire_Validator1(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_insc_defisc.php';
  return (true);

}

function Formulaire_Validator2(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_+infodefisc.php';
  return (true);

}

function Formulaire_Validator3(theForm)
  {
  if (theForm.nom.value == "")
  {
	alert("Tapez une valeur pour le champ \"Nom\".");
    theForm.nom.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_contact.php';
  return (true);

}

function Formulaire_Validator4(theForm)
  {
  if (theForm.nom.value == "")
  {
	alert("Tapez une valeur pour le champ \"Nom\".");
    theForm.nom.focus();
    return (false);
  }
  if (theForm.tel.value == "")
  {
    alert("Tapez une valeur pour le champ \"Téléphone\".");
    theForm.tel.focus();
    return (false);
  }
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_etrerappele.php';
  return (true);

}

function Formulaire_Validator5(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_inscr_nouveauxprgr.php';
  return (true);

}
function Formulaire_Validator6(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_newsletter.php';
  return (true);

}
function Formulaire_Validator7(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/services_privileges/traitement_plans.php';
  return (true);

}
function Formulaire_Validator8(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/services_privileges/traitement_plans.php';
  return (true);

}
function Formulaire_Validator9(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/services_privileges/traitement_tarifs.php';
  return (true);

}
function Formulaire_Validator10(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/services_privileges/traitement_tarifs.php';
  return (true);

}
function Formulaire_Validator11(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }
  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  if (theForm.email2.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail du Destinataire\".");
    theForm.email2.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email2.value.length;
  var pos_at=theForm.email2.value.indexOf("@")+1;
  var pos_pt=theForm.email2.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email2.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email2.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_envoiami.php';
  return (true);

}

function Formulaire_Validator12(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_inscr_lancement.php';
  return (true);

}

function Formulaire_Validator13(theForm)
  {
  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"E-mail\".");
    theForm.email.focus();
    return (false);
  }

  //teste validité email expéditeur
  var taille=theForm.email.value.length;
  var pos_at=theForm.email.value.indexOf("@")+1;
  var pos_pt=theForm.email.value.lastIndexOf(".")+1;
  var pos_at2=theForm.email.value.lastIndexOf("@")+1;
  if ((pos_at<2) || (pos_pt<pos_at) || (taille<8) || (taille-pos_pt<2) || (taille-pos_pt>3) || (pos_at!=pos_at2)) 
  { alert ("Votre e-mail est invalide !"); theForm.email.focus(); return false;}
  
  theForm.action='/annemasse/includes/formulaires/traitement_incl_inscr_lancement.php';
  return (true);

}



function Change_selection(i){
var i;
	eval("etre_rappele.jour["+i+"].checked=true");
}


