
<!--
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 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 P7_ReDoIt() { //v1.21 by PVII
 if(document.layers) {MM_reloadPage(false);}
}

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 Centrer(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/3;
  var left=(screen.width-largeur)/2;
  NewWindow = open("","winPopup","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
  NewWindow.location = page ;
  NewWindow.focus();
  return;
}


function ptpopup(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}

function newptpopup(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
newfencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}






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

function Windowprint() {
  if (navigator.appVersion.indexOf("Mac",0)>0) {
     alert("Cette fonction n\'est pas réalisable sur Macintosh.\n\nUtilisez plutôt la combinaison de touches \"Pomme-P\"");
        }
else {
    window.print();
  }
}

//onsubmit="return(check(this));"

function exemple(f)
{
  // f désigne le formulaire concerné.
  // Il s'agit d'une table de tous les éléments du formulaire(zones de texte)

  f[0].value = "Gaston Leroux"
  f[1].value = "2 rue des hirondelles"
  f[2].value = "gaston.leroux@net.fr"
  f[3].value = "gaston.leroux@net.fr"
  f[4].value = "04-78-35-18-27"
  f[5].value = "04-78-35-18-27"
  f[6].value = "gaston.leroux@net.fr"
  f[7].value = "gaston.leroux@net.fr"
  f[8].value = "gaston.leroux@net.fr"
  f[9].value = "Pierre Ponce"
  f[10].value = "gaston.leroux@net.fr"
  f[11].value = "gaston.leroux@net.fr"
  f[12].value = "gaston leroux et fr"
  f[13].value = "gaston.leroux@net.fr"
  f[14].value = "gaston.leroux@net.fr"
  f[15].value = "gaston.leroux@net.fr"
  f[16].value = "gaston.leroux@net.fr"
  f[17].value = "gaston.leroux@net.fr"
  f[18].value = "gaston.leroux@net.fr"
  f[19].value = "gaston.leroux@net.fr"
  f[20].value = "gaston.leroux@net.fr"
  f[21].value = "gaston.leroux@net.fr"
  f[22].value = "gaston.leroux@net.fr"
  f[23].value = "gaston leroux"

}

function check(f)
{
  // Avant l'envoi du formulaire, plusieurs variables
  // doivent être vérifiées.
  // En cas d'erreur, l'utilisateur est averti
  // par un message.

  // D'abord, nous déterminons si une zone de texte est vide.

  if(f[0].value == '')
  {
    alert('Indiquez le nom de la structure, SVP.');
    return(false);
  }
  
    if(f[1].value == '')
  {
    alert('Indiquez une adresse, SVP.');
    return(false);
  }
  
  if(f[2].value == '')
  {
    alert('Indiquez un code postal, SVP.');
    return(false);
  }
  
   if(f[3].value == '')
  {
    alert('Indiquez une commune, SVP.');
    return(false);
  }

  if(f[4].value == '')
  {
    alert('Indiquez le numéro de téléphone, SVP.');
    return(false);
  }

  if(f[9].value == '')
  {
    alert('Indiquez le nom du responsable dans le champs Directeur(s), SVP.');
    return(false);
  }
  
   if(f[12].value == '')
  {
    alert('Veuillez faire une brève description de la structure dans le chmps Commentaires, SVP.');
    return(false);
  }
  
  
   if(f[23].value == '')
  {
    alert('Indiquez un signataire, SVP.');
    return(false);
  }
  // Puis nous vérifions si le numéro de téléphone
  // contient des caractères interdits. Une boucle for
  // vérifie individuellement chaque caractère.

  var s;
  for(var i = 0; i < f[4].value.length; i++)
  {

    // le caractuel est stocké dans s.
    s = f[4].value.charAt(i);

    // Caractères valides : espace, parenthèses, "/", "-" et "+".
    if( !((s >= 0) && (s <= 9))
     && (s != ' ') && (s != '-') && (s != '+')
     && (s != '/') && (s != '(') && (s != ')'))
    {
      alert('Le numéro de téléphone ne peut comporter que des chiffres, '
       + 'espaces, parentheses, "/", "-" et "+".');
      return(false);
    }
  }


  return(true);
}

function ouvrirImage(url, height, width) {
  window.open(url,'', 'height='+height+', width='+width+',toolbar=no,menubar=no,status=no,resizable=yes,location=no');
}
function fenetre(image, largeur, hauteur) {
    window.open("fenetre.htm?img=" + image + "&larg=" + largeur + "&haut=" + hauteur + "&titre=" + escape(titre), "", "width=" + largeur + ",height=" + hauteur);
}

function popup(photo, titre, largeur, hauteur)        { // Ateliers CYM - Paris
        var contenu="<html><head><title>"+titre+"</title></head> <body topmargin='0' leftmargin='0'><div><p><a href='javascript:self.close()'> <img border='0' src='"+photo+"'></a><div id='Layer1' style='position:absolute; z-index:1; left: 2; top: 2'><i><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>Cliquez sur l\'image pour fermer.</font></i></div></p></div></body></html>";

        var fenetre=open("","","title="+titre+",resizable=no, width="+largeur+", height="+hauteur+"");
        
        fenetre.document.write(contenu);
}

function popup2(url,titre,w,h)
	{
	
		fen = window.open(url,titre,'width=' + w + ',height=' + h + ',scrollbars=1,toolbar=1');
		
	}
	
	function MM_jumpMenu(targ,selObj,restore)
	{ 
  		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  		if (restore) selObj.selectedIndex=0;
        
	}

	
function popup(photo, titre, largeur, hauteur)        { 
        var contenu="<html><head><title>"+titre+"</title></head> <body topmargin='0' leftmargin='0'><a href='javascript:self.close()'> <img border='0' src='"+photo+"'></a><div id='Layer1' style='position:absolute; z-index:1; left: 2; top: 2'><i><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>Cliquez sur l\'image pour fermer.</font></i></div></body></html>";

        var fenetre=open("","","title="+titre+",resizable=no,width="+largeur+", height="+hauteur+"");
        
        fenetre.document.write(contenu);
        }


//-->
