// Java Document

function AxRep(){



if (!document.all || !window.print || window.opera) return;

if (document.getElementsByTagName) {

		

		

//object

var theObjects = document.getElementsByTagName("object");

for (var i = 0; i < theObjects.length; i++) {

//ajout d'un div autour de object

div = theObjects[i].parentNode.insertBefore(document.createElement("div"), theObjects[i]);

div.style.display="none";

div.appendChild(theObjects[i]);



if(div.firstChild.data){

// Fix for Flash Satay style objects

div.firstChild.removeAttribute('data');

}



//Recuperation des flashvars

var theParams = div.getElementsByTagName("param");

for (var j = 0; j < theParams.length; j++) {

if(theParams[j].name.toLowerCase() == 'flashvars'){

var theFlashVars = theParams[j].value;

break;

}

}



//changement des flashvars

var theInnnerHTML = div.innerHTML;

var re =

theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");

div.outerHTML = theInnnerHTML;

}



//embed

var embs = document.getElementsByTagName("embed");

for (i=0; i<embs.length; i++) {

embs[i].outerHTML = embs[i].outerHTML;

}

}

}





/* VERIF FORM */

function verif_tel()

{



  

   if(document.tel.nom.value == "") {

   alert("Veuillez entrer votre nom et prénom");

   document.tel.nom.focus();

   return false;

  }

  

 if(document.tel.pays.value == "")  {

   alert("Veuillez indiquer votre pays");

   document.tel.pays.focus();

   return false;

  }



  

   if(document.tel.mail.value == "") {

   alert("Veuillez entrer votre adresse électronique");

   document.tel.mail.focus();

   return false;

  }

 if(document.tel.mail.value.indexOf('@') == -1) {

   alert("Ce n'est pas une adresse électronique");

   document.tel.mail.focus();

   return false;

  }

  

   if(document.tel.tel.value == "")  {

   alert("Veuillez indiquer votre numéro de téléphone");

   document.tel.tel.focus();

   return false;

  }

  

}



/* +++++++++++++++++++++++++++++++++++++++++++++++ */

function verif_doc()

{



  

   if(document.doc.nom.value == "") {

   alert("Veuillez entrer votre nom et prénom");

   document.doc.nom.focus();

   return false;

  }

  

 if(document.doc.pays.value == "")  {

   alert("Veuillez indiquer votre pays");

   document.doc.pays.focus();

   return false;

  }

  

   if(document.doc.mail.value == "") {

   alert("Veuillez entrer votre adresse électronique");

   document.doc.mail.focus();

   return false;

  }

 if(document.doc.mail.value.indexOf('@') == -1) {

   alert("Ce n'est pas une adresse électronique");

   document.doc.mail.focus();

   return false;

  }

}





/* VERIF COACHING */

function verif_coaching()

{

  

   if(document.coaching.nom.value == "") {

   alert("Veuillez entrer votre nom");

   document.coaching.nom.focus();

   return false;

  }

  

  

   if(document.coaching.profession.value == "") {

   alert("Veuillez indiquer votre profession");

   document.coaching.profession.focus();

   return false;

  }

  

   if(document.coaching.pays.value == "")  {

   alert("Veuillez indiquer votre pays");

   document.coaching.pays.focus();

   return false;

  }

  

   if(document.coaching.tel.value == "")  {

   alert("Veuillez indiquer votre numéro de téléphone");

   document.coaching.tel.focus();

   return false;

  }

    

}



/* Collones a largeur variable */

/*

function plus_cadeaux()

{

		document.getElementById("plus_cadeaux").style.width = '60%';

		document.getElementById("plus_coaching").style.width = '20%';

		document.getElementById("plus_newsletter").style.width = '20%';

		

		document.getElementById('plus_cadeaux').style.backgroundColor='#ffffcc';

		document.getElementById('plus_coaching').style.backgroundColor='#ffffcc';

		document.getElementById('plus_newsletter').style.backgroundColor='#ffffcc';

}



function plus_coaching()

{

		document.getElementById("plus_cadeaux").style.width = '20%';

		document.getElementById("plus_coaching").style.width = '60%';

		document.getElementById("plus_newsletter").style.width = '20%';

		

		document.getElementById('plus_cadeaux').style.backgroundColor='#ffffcc';

		document.getElementById('plus_coaching').style.backgroundColor='#ffffcc';

		document.getElementById('plus_newsletter').style.backgroundColor='#ffffcc';

}



function plus_newsletter()

{

		document.getElementById("plus_cadeaux").style.width = '20%';

		document.getElementById("plus_coaching").style.width = '20%';

		document.getElementById("plus_newsletter").style.width = '60%';

		

		document.getElementById('plus_cadeaux').style.backgroundColor='#ffffcc';

		document.getElementById('plus_coaching').style.backgroundColor='#ffffcc';

		document.getElementById('plus_newsletter').style.backgroundColor='#ffffcc';

}

*/



/* ===PREAMBULE ET RESUME === */

function preambule()

{

		document.getElementById("preambule").style.display = 'block';

		document.getElementById("bouton_preambule").style.display = 'none';

		document.getElementById("bouton_preambule_cacher").style.display = 'block';

}



function preambule_cacher()

{

		document.getElementById("preambule").style.display = 'none';

		document.getElementById("bouton_preambule").style.display = 'block';

		document.getElementById("bouton_preambule_cacher").style.display = 'none';

}



function resume()

{

		document.getElementById("resume_methode").style.display = 'block';

		document.getElementById("resume_cacher").style.display = 'block';

		document.getElementById("resume").style.display = 'none';

		document.getElementById("methode").style.display = 'none';

}



function resume_cacher()

{

		document.getElementById("resume_methode").style.display = 'none';

		document.getElementById("resume_cacher").style.display = 'none';

		document.getElementById("resume").style.display = 'block';

		document.getElementById("methode").style.display = 'block';

}





function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}





function affichage_popup(nom_de_la_page, nom_interne_de_la_fenetre)

{

window.open (nom_de_la_page, nom_interne_de_la_fenetre, config='height=550, width=800, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no')

}



function toggleVis(nomObject) {

	var myObject;

	myObject = MM_findObj(nomObject);

	return toggleVisObj(myObject);

}



function toggleVisObj(myObject) {

	if (myObject.className == 'inv') {

		return visibleObj(myObject);

	} else {

		return invisibleObj(myObject);

	}

}



function invisible(nomObject) {

	var myObject;

	myObject = MM_findObj(nomObject);

	if (myObject == null) {

		alert("Unable to locate HTML element: " + nomObject);

		return false;

	}

	return invisibleObj(myObject);

}



function invisibleObj(myObject) {

	myObject.className	= 'inv';

	myObject.style.display	= 'none';

	return true;

}





function visible(nomObject) {

	var myObject;

	myObject = MM_findObj(nomObject);

	if (myObject == null) {

		alert("Unable to locate HTML element: " + nomObject);

		return false;

	}

	return visibleObj(myObject);

}



function visibleObj(myObject) {

	myObject.className = 'vis';

	myObject.style.display = 'block';

	return true;

}





function MM_findObj(n, d) {

	var p,i,x;

	

	if (d == undefined) {

		d = document;

	}

	

	var directAccess = (x = d[n]);

	

	// Direct access

	if (directAccess) {

		return x;

	}

	

	

	// d.all

	if(d.all) {

		x = d.all[n];

		if (x != null) {

			return x;

		}

	}

	

	// By id

	if(d.getElementById) {

		x = d.getElementById(n);

		if (x != null) {

			return x;

		}

	}

	

	// Each form

	for (i=0; i<d.forms.length; i++) {

		x = d.forms[i][n];

		if (x != null) {

			return x;

		}

	}

	

	// Each div

	if (d.layers) {

		for(i=0; i<d.layers.length; i++) {

			x = MM_findObj(n, d.layers[i].document);

			if (x != null) {

				return x;

			}

		}

	}

	

	return null;

}



function tobbleTemoignage(caller, temoignageId) {

	if (caller.className == "closed") {

		caller.className = "open";

	} else {

		caller.className = "closed";

	}

	return toggleVis('content_'+temoignageId);

}





function change(){           
        var contacter = document.getElementById("contacter");

        if(contacter.value == "oui"){
                document.getElementById("form2").style.display = "block";
        }
        else {
                document.getElementById("form2").style.display = "none";
        }
}
