function copy_right()
 {
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_copy_right.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'500px'});
                                        jQuery('.fond_contenu_principal_centre').css({'height':'100%','overflow':'hidden'});
                                        
                                        jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
					 window.scrollTo(0,0);
				}
				});
	}
function mention()
 {
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_mention.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'500px'});
                                        jQuery('.fond_contenu_principal_centre').css({'height':'100%','overflow':'hidden'});

                                        jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
                                        window.scrollTo(0,0);
				}
				});
}


function plan_site()
 {
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_plan_site.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'500px'});
                                        jQuery('.fond_contenu_principal_centre').css({'height':'100%','overflow':'hidden'});
                                        
                                        jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
                                        window.scrollTo(0,0);
				}
				});
}


function cond_login()
{
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_condition_login.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'500px'});
                                        jQuery('.fond_contenu_principal_centre').css({'height':'100%','overflow':'hidden'});
                                        
                                        jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
					 window.scrollTo(0,0);
				}
				});
}
function savoir_six()
{
	document.getElementById('acc').style.display='none';
	
	jQuery('.voir_plan').css({'display':'none'});
	jQuery('.voir_equipe').css({'display':'none'});

	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_savoir_six.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'520px'});
                                        jQuery('#show_ajax').css({'height':'520px'});

                                        jQuery('#show_ajax').html(msg);
					 window.scrollTo(0,0);
				}
				});
	 
}
function savoir_neuf()
{
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_savoir_neuf.php',				
				success:function(msg)
				{
					jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
					 window.scrollTo(0,0);
				}
				});
}
function savoir_coup()
{
	 document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_savoir_coup.php',				
				success:function(msg)
				{
					jQuery('.fond_principal_centre').css({'height':'500px'});
                                        jQuery('.fond_contenu_principal_centre').css({'height':'100%','overflow':'hidden'});
                                        
                                        jQuery('#show_ajax').css({'height':'500px'});
                                        jQuery('#show_ajax').html(msg);
					 window.scrollTo(0,0);
				}
				});
}








function validationDevis(nom,prenom,profession,societe,adresse,ville,code_postal,tel,fax,mail,message) {

  jQuery.ajax({
          type:'GET',
          url:'Ajax/demande_devis.php?quest=reponse&nom='+nom+'&prenom='+prenom+'&profession='+profession+'&societe='+societe+'&adresse='+adresse+'&ville='+ville+'&code_postal='+code_postal+'&tel='+tel+'&fax='+fax+'&mail='+mail+'&message='+message,
          success:function(msg){
                if(msg==1) {
                  jQuery('#obligatoire').css({'color':'red'});
                } else {
                  jQuery('#bouton_valider').html(msg);
                  jQuery('#obligatoire').css({'color':'white'});
                  
                  document.devis.nom.value="";
                  document.devis.prenom.value="";
                  document.devis.societe.value="";
                  document.devis.adresse.value="";
                  document.devis.ville.value="";
                  document.devis.code_postal.value="";
                  document.devis.tel.value="";
                  document.devis.fax.value="";
                  document.devis.mail.value="";
                  document.devis.message.value="";
                }
            }

        });

}


function re_formulaire() {
  
  document.getElementById('acc').style.display='none';
	 jQuery.ajax({
				type:'GET',
				url:'Ajax/ajax_savoir_neuf.php',				
				success:function(msg)
				{
					jQuery('#show_ajax').html(msg);  
					 window.scrollTo(0,0);
				}
				});

}



function connectionUser(login,pwd,box) {
  
  //alert(box);

var the_pwd = MD5(pwd);

      if(box==false) {
        alert("Veuillez accepter les conditions d'utilisation!!");
        }
        
        
        else {
           location.href="http://intranet.3xo.fr/log_externe.php?login="+login+"&pwd="+the_pwd;        
        }

}




function verif_conditions(box,login,pwd) {
  
  if(box==false) {
        alert("Veuillez accepter les conditions d'utilisation!!");
        }

}
