function dpo(id,activer)
  {
	for(i=1;i<=2;i++)
	  {
		if(i==activer)
		  {
			$('#'+id+i).css('display','block');
			$('#t'+id+i).attr('class','c'+i);
		  }
		else
		  {
			$('#'+id+i).css('display','none');
			$('#t'+id+i).attr('class','c'+i+'off');
		  }
	  }
  }
 
  // Reset Font Size
  /*var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });*/
  // Increase Font Size
function increaseFont()
  {
    var currentFontSize = $('#col1').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum+2;
    $('#col1').css('font-size', newFontSize);
    
	var currentFontSize = $('#col2').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum+2;
    $('#col2').css('font-size', newFontSize);
    
	var currentFontSize = $('#col3').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum+2;
    $('#col3').css('font-size', newFontSize);
    
	return false;
  }
  // Decrease Font Size
function decreaseFont()
  {
    var currentFontSize = $('#col1').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum-2;
    $('#col1').css('font-size', newFontSize);

    var currentFontSize = $('#col2').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum-2;
    $('#col2').css('font-size', newFontSize);

    var currentFontSize = $('#col3').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum-2;
    $('#col3').css('font-size', newFontSize);
	
	return false;
  }


function getListeActu(typeactu,page)
  {
	$.get(localPath+"library/ajax/lstActus.php",
		{ 'page': page,'typeactu': typeactu },
		function(data)
		  {$('#contBlocActu').html(data);}
	);
  }
function getListeQuestions(typeOrder,page,div,theme)
  {
	$.get(localPath+"library/ajax/lstQuestion.php",
		{ 'page': page,'typeOrder': typeOrder,'div': div,'theme': theme },
		function(data)
		  {$('#o'+div+""+typeOrder).html(data);}
	);
  }

function getTem(nbtem)
  {
	$.get(localPath+"library/ajax/infosTem.php",
		{ 'tem': nbtem },
		function(data)
		  {$('#detailtemoignage').html(data);}
	);
  }
function voirReponse(idR,n)
  {
	$('#lstactus'+n+' .reponseq').css('display','none');
	$('#lstactus'+n+' #q'+idR).css('display','block');
  }
function lireq(idR,page,typeOrder,div)
  {
	$.get(localPath+"library/ajax/voirQuestion.php",
		{ 'page': page,'typeOrder': typeOrder,'div': div,'idR': idR },
		function(data)
		  {$('#o'+div+""+typeOrder).html(data);}
	);
  }

function controlFields(controles,messages)
  {
	toutestok = true;
	for(i=1;i<=controles.length;i++)
	  {
		if(eval(controles[i]))
		  {
			alert(messages[i]);
			toutestok = false;
			i=controles.length+2;
		  }
	  }
	
	return toutestok;
  }
