function is_array (mixed_var) {
    // Returns true if variable is an array  
    // 
    // version: 908.406
    // discuss at: http://phpjs.org/functions/is_array
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Legaev Andrey
    // +   bugfixed by: Cord
    // +   bugfixed by: Manish
    // +   improved by: Onno Marsman
    // +   improved by: Brett Zamir (http://brett-zamir.me)
    // +   bugfixed by: Brett Zamir (http://brett-zamir.me)
    // %        note 1: In php.js, javascript objects are like php associative arrays, thus JavaScript objects will also
    // %        note 1: return true  in this function (except for objects which inherit properties, being thus used as objects),
    // %        note 1: unless you do ini_set('phpjs.objectsAsArrays', true), in which case only genuine JavaScript arrays
    // %        note 1: will return true
    // *     example 1: is_array(['Kevin', 'van', 'Zonneveld']);
    // *     returns 1: true
    // *     example 2: is_array('Kevin van Zonneveld');
    // *     returns 2: false
    // *     example 3: is_array({0: 'Kevin', 1: 'van', 2: 'Zonneveld'});
    // *     returns 3: true
    // *     example 4: is_array(function tmp_a(){this.name = 'Kevin'});
    // *     returns 4: false
    var key = '';
    var getFuncName = function (fn) {
        var name = (/\W*function\s+([\w\$]+)\s*\(/).exec(fn);
        if (!name) {
            return '(Anonymous)';
        }
        return name[1];
    };

    if (!mixed_var) {
        return false;
    }

    // BEGIN REDUNDANT
    this.php_js = this.php_js || {};
    this.php_js.ini = this.php_js.ini || {};
    // END REDUNDANT

    if (typeof mixed_var === 'object') {

        if (this.php_js.ini['phpjs.objectsAsArrays'] &&  // Strict checking for being a JavaScript array (only check this way if call ini_set('phpjs.objectsAsArrays', 0) to disallow objects as arrays)
            (
            (this.php_js.ini['phpjs.objectsAsArrays'].local_value.toLowerCase &&
                    this.php_js.ini['phpjs.objectsAsArrays'].local_value.toLowerCase() === 'off') ||
                parseInt(this.php_js.ini['phpjs.objectsAsArrays'].local_value, 10) === 0)
            ) {
            return mixed_var.hasOwnProperty('length') && // Not non-enumerable because of being on parent class
                            !mixed_var.propertyIsEnumerable('length') && // Since is own property, if not enumerable, it must be a built-in function
                                getFuncName(mixed_var.constructor) !== 'String'; // exclude String()
        }

        if (mixed_var.hasOwnProperty) {
            for (key in mixed_var) {
                // Checks whether the object has the specified property
                // if not, we figure it's not an object in the sense of a php-associative-array.
                if (false === mixed_var.hasOwnProperty(key)) {
                    return false;
                }
            }
        }

        // Read discussion at: http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_is_array/
        return true;
    }

    return false;
}



var tabOpt = new Array();

Array.prototype.in_array = function(p_val) {
	for(var i = 0, l = this.length; i < l; i++) {
		if(this[i] == p_val) {
			rowid = i;
			return true;
		}
	}
	return false;
}
String.prototype.trim = function() {
  return this.replace(/(^\s*)|(\s*$)/g,'');
}

// supprime un élément d’un tableau en fonction de sa valeur
Array.prototype.remove = function(p_val) {
	var toRemove = null;
	for(var i = 0, l = this.length; i < l; i++) {
		if(this[i] == p_val) { toRemove = { id: i, value: this[i] }; }
	}
 
	if (toRemove != null) {
		for (var i = toRemove.id; i < this.length; i++) {
			this[i] = this[i+1];
		}
		this.pop();
		return toRemove.value;
	}
 
	return null;
}

var regExpBeginning = /^\s+/;
var regExpEnd       = /\s+$/;
// Supprime les espaces inutiles en début et fin de la chaîne passée en paramètre.
function trimespace(aString) {
    return aString.replace(regExpBeginning, "").replace(regExpEnd, "");
}

function afficheFocus(texte,id){	
	if($('#'+id).val()==texte){
		$('#'+id).val('');
	}
}
function afficheBlur(texte,id){	
	if($('#'+id).val()==''){
		$('#'+id).val(texte);
	}
}
function isValidEmailAddress(emailAddress) {
  // If a simple regular expression doesn't work
  if(!new RegExp(/^test$/).test("test")) { return true; }

  // If the email address is empty
  if(emailAddress.trim() == '') { return false; }

  return new RegExp(/^([a-z]([_\.0-9a-z-]+)?@)([a-z]([_\.0-9a-z-]+)?\.)([a-z]{2,4})$/i).test(emailAddress.trim());
}

function loadVilles(idDept,ville){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/loadVilles.php",
			data: "idDept="+idDept+"&ville="+ville+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#contenerVilles').html(html);
			}
		});
}

function loadDepts(idDept){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/loadDept.php",
			data: "idDept="+idDept+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#contenerDept').html(html);
			}
		});
}

function loadVilles2(idDept,ville){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/loadVilles2.php",
			data: "idDept="+idDept+"&ville="+ville+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#contenerVilles').html(html);
			}
		});
}

function loadEnt(idVille,Entreprise){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/loadEnt.php",
			data: "idVille="+idVille+"&Entreprise="+Entreprise+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#contenerEnt').html(html);
			}
		});
}

function envoiePasse(email){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/oubliePasse.php",
			data: "email="+email+"&timestamp="+new Date().getTime(),
			success: function(json){
				$('#retourMessage').html(json.message);
				
			}
		});
}

function supProfil(idUser, typUser){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"json",
			url: "./ajax/supProfil.php",
			data: "idUser="+idUser+"&typUser="+typUser+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site;
			}
		});
}

function supCvPhoto(idUser,typSup){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supCvPhoto.php",
			data: "idUser="+idUser+"&typSup="+typSup+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				$('#Cvprofil').css("display", "none");
			}
		});
}

function supEmploye(idE){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supEmploye.php",
			data: "idE="+idE+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				$('#employe'+idE).css("display", "none");
			}
		});
}

function supSelection(idS){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supSelection.php",
			data: "idS="+idS+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				$('#selection'+idS).css("display", "none");
			}
		});
}
function cacherMontrerAnnonce(idA,mode){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/cacherMontrerAnnonce.php",
			data: "idA="+idA+"&mode="+mode+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				document.location.href=json.site+"/recruteurs/espace-recruteurs-liste-annonce.php ";
			}
		});
}
function supAnnonce(idA){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supAnnonce.php",
			data: "idA="+idA+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				$('#annonce'+idA).css("display", "none");
			}
		});
}
function DebAjoutProfil(civility,nom,prenom,situationFam,numCouple,nationalite,dateNais,adresse,complementAdresse,cp,ville,dept,tel,affiche_tel,mail){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/DebAjoutProfil.php",
			data: "civility="+civility+"&nom="+nom+"&prenom="+prenom+"&situationFam="+situationFam+"&numCouple="+numCouple+"&nationalite="+nationalite+"&dateNais="+dateNais+"&adresse="+adresse+"&complementAdresse="+complementAdresse+"&cp="+cp+"&ville="+ville+"&dept="+dept+"&tel="+tel+"&affiche_tel="+affiche_tel+"&mail="+mail+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+"/candidats/depot-cv-step2.php";
			}
		});
}


function AjoutProfilStep2(statut,anglais,allemand,espagnol,italien,russe,autre_lang,formation,poste_recherche,experience,region_cible,contrat_souhaite,extra,type_extra,dateDispo,permis,autre_infos,villeExtra,typeEtabR){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/AjoutProfilStep2.php",
			data: "statut="+statut+"&anglais="+anglais+"&allemand="+allemand+"&espagnol="+espagnol+"&italien="+italien+"&russe="+russe+"&autre_lang="+autre_lang+"&formation="+formation+"&poste_recherche="+poste_recherche+"&experience="+experience+"&region_cible="+region_cible+"&contrat_souhaite="+contrat_souhaite+"&extra="+extra+"&type_extra="+type_extra+"&dateDispo="+dateDispo+"&permis="+permis+"&autre_infos="+autre_infos+"&villeExtra="+villeExtra+"&typeEtabR="+typeEtabR+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+"/candidats/depot-cv-step3.php";
			}
		});
}

function AjoutProfilStep3(dateDeb,dateFin,ville,fonction,dept,etablissement,commentaire,aucuneExp){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/AjoutProfilStep3.php",
			data: "dateDeb="+dateDeb+"&dateFin="+dateFin+"&ville="+ville+"&fonction="+fonction+"&dept="+dept+"&etablissement="+etablissement+"&commentaire="+commentaire+"&aucuneExp="+aucuneExp+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+"/candidats/depot-cv-step4.php";
			}
		});
}

function FinAjoutProfil(loisirs,objectifs,particularite_medic,date_visite_medic,sport,sport_libelle,connu_site,accepte_contact){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/FinAjoutProfil.php",
			data: "loisirs="+loisirs+"&objectifs="+objectifs+"&particularite_medic="+particularite_medic+"&date_visite_medic="+date_visite_medic+"&sport="+sport+"&sport_libelle="+sport_libelle+"&connu_site="+connu_site+"&accepte_contact="+accepte_contact+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+json.redirect;
			}
		});
}

function AjoutSelection(idO,idUser,typUser){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/AjoutSelection.php",
			data: "idO="+idO+"&idUser="+idUser+"&typUser="+typUser+"&timestamp="+new Date().getTime(),
			success: function(json){
				alert(json.message);
			}
		});
}

function inscriptionNewsletter(email){
	
	if(isValidEmailAddress(email)){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/inscriptionNewsletter.php",
			data: "email="+email+"&timestamp="+new Date().getTime(),
			success: function(json){
				alert(json.message);
			}
		});
	}else{
		alert('Vous devez renseigner une adresse e-mail valide.');	
	}
}

function marquerCommeLuNonLu(lesid,type,pageR){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/marquerCommeLuNonLu.php",
			data: "lesid="+lesid+"&type="+type+"&page="+pageR+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+json.page;
			}
		});
	
}
function supMessage(lesid){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supMessage.php",
			data: "lesid="+lesid+"&timestamp="+new Date().getTime(),
			success: function(json){
				// cache le fichier
				var reg=new RegExp("[ ,;]+", "g");
				//if(is_array(lesid)){
					var tableau=lesid.split(reg);
					for (var i=0; i<tableau.length; i++) {
						$('#lign'+tableau[i]).css("display", "none");
					}	
				/*}else{
					alert('ici');
					$('#lign'+lesid).css("display", "none");
				}*/
			}
		});	
}
function supMessage2(idM,pageR){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/supMessage.php",
			data: "lesid="+idM+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+pageR;
			}
		});	
}

function logOutMembre(page){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"json",
			url: "./ajax/logOutMembre.php",
			data: "page="+page+"&timestamp="+new Date().getTime(),
			success: function(json){
				document.location.href=json.site+json.page;
			}
		});
}

function paginationActu(pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationActu.php",
			data: "pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationActu').html(html);
			}
		});
}

function paginationAfficheActu(pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/paginationAfficheActu.php",
			data: "pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauActuSide').html(html);
			}
		});
}

function orderAnnonce(posteR,regionR,contratR,neworderBy,orderBy,oldOrderBy,guideEntR,categorieR,saisonR,infoDeptR,villeR){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/orderAnnonce.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&neworderBy="+neworderBy+"&orderBy="+orderBy+"&oldOrderBy="+oldOrderBy+"&guideEntR="+guideEntR+"&categorieR="+categorieR+"&saisonR="+saisonR+"&infoDeptR="+infoDeptR+"&villeR="+villeR+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
				lanceToolTip();
			}
		});
}


function paginationAnnonce(posteR,regionR,contratR,orderR,guideEntR,categorieR,saisonR,infoDeptR,villeR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationAnnonce.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&orderR="+orderR+"&guideEntR="+guideEntR+"&categorieR="+categorieR+"&infoDeptR="+infoDeptR+"&villeR="+villeR+"&saisonR="+saisonR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationAnnonce').html(html);
			}
		});
}

function paginationAfficheAnnonce(posteR,regionR,contratR,orderR,guideEntR,categorieR,saisonR,infoDeptR,villeR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationAfficheAnnonce.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&orderR="+orderR+"&saisonR="+saisonR+"&guideEntR="+guideEntR+"&categorieR="+categorieR+"&infoDeptR="+infoDeptR+"&villeR="+villeR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
				lanceToolTip();
			}
		});
}


function orderOffrePartenaire(rubriqueR,activiteR,deptR,neworderBy,orderBy,oldOrderBy){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/orderOffrePartenaire.php",
			data: "rubriqueR="+rubriqueR+"&activiteR="+activiteR+"&deptR="+deptR+"&neworderBy="+neworderBy+"&orderBy="+orderBy+"&oldOrderBy="+oldOrderBy+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
				lanceToolTip();
			}
		});
}


function paginationOffrePartenaire(rubriqueR,activiteR,deptR,orderR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationOffrePartenaire.php",
			data: "rubriqueR="+rubriqueR+"&activiteR="+activiteR+"&deptR="+deptR+"&orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationAnnonce').html(html);
			}
		});
}

function paginationAfficheOffrePartenaire(rubriqueR,activiteR,deptR,orderR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/paginationAfficheOffrePartenaire.php",
			data: "rubriqueR="+rubriqueR+"&activiteR="+activiteR+"&deptR="+deptR+"&orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
				lanceToolTip();
			}
		});
}


function orderAnnuaire(DeptR,typeEtabR,libelEntR,neworderBy,orderBy,oldOrderBy){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/orderAnnuaire.php",
			data: "DeptR="+DeptR+"&typeEtabR="+typeEtabR+"&libelEntR="+libelEntR+"&neworderBy="+neworderBy+"&orderBy="+orderBy+"&oldOrderBy="+oldOrderBy+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
			}
		});
}


function paginationAfficheAnnuaire(DeptR,typeEtabR,libelEntR,orderR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/paginationAfficheAnnuaire.php",
			data: "DeptR="+DeptR+"&typeEtabR="+typeEtabR+"&libelEntR="+libelEntR+"&orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauOffresEmploiSide').html(html);
			}
		});
}


function paginationAnnuaire(DeptR,typeEtabR,libelEntR,orderR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationAnnuaire.php",
			data: "DeptR="+DeptR+"&typeEtabR="+typeEtabR+"&libelEntR="+libelEntR+"&orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationAnnonce').html(html);
			}
		});
}




function orderCv(posteR,regionR,contratR,neworderBy,orderBy,oldOrderBy,statutR,dateDispoR,TypeEtabR,experienceR){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/orderCv.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&neworderBy="+neworderBy+"&TypeEtabR="+TypeEtabR+"&experienceR="+experienceR+"&orderBy="+orderBy+"&oldOrderBy="+oldOrderBy+"&statutR="+statutR+"&dateDispoR="+dateDispoR+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauCVSide').html(html);
				lanceToolTip();
			}
		});
}

function paginationCv(posteR,regionR,contratR,orderR,statutR,dateDispoR,TypeEtabR,experienceR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationCv.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&TypeEtabR="+TypeEtabR+"&experienceR="+experienceR+"&orderR="+orderR+"&pageR="+pageR+"&statutR="+statutR+"&dateDispoR="+dateDispoR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationCv').html(html);
			}
		});
}

function paginationAfficheCv(posteR,regionR,contratR,orderR,statutR,dateDispoR,TypeEtabR,experienceR,pageR,nbpageplusmoin){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/paginationAfficheCv.php",
			data: "posteR="+posteR+"&regionR="+regionR+"&contratR="+contratR+"&orderR="+orderR+"&TypeEtabR="+TypeEtabR+"&experienceR="+experienceR+"&pageR="+pageR+"&statutR="+statutR+"&dateDispoR="+dateDispoR+"&nbpageplusmoin="+nbpageplusmoin+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauCVSide').html(html);
				lanceToolTip();
				
			}
		});
}


function orderMessage(neworderBy,orderBy,oldOrderBy,typeM,pageRetour){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/orderMessage.php",
			data: "neworderBy="+neworderBy+"&orderBy="+orderBy+"&oldOrderBy="+oldOrderBy+"&typeM="+typeM+"&pageRetour="+pageRetour+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauCVSide').html(html);
			}
		});
}

function paginationMessage(orderR,pageR,nbpageplusmoin,typeM){
	//AJAX
		$.ajax({
			type: "post",
			dataType :"html",
			url: "./ajax/paginationMessage.php",
			data: "orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&typeM="+typeM+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#paginationMessage').html(html);
			}
		});
}

function paginationAfficheMessage(orderR,pageR,nbpageplusmoin,typeM,pageRetour){
	//AJAX
		$.ajax({
			type: "post",
			mode: "abort",
			dataType :"html",
			url: "./ajax/paginationAfficheMessage.php",
			data: "orderR="+orderR+"&pageR="+pageR+"&nbpageplusmoin="+nbpageplusmoin+"&typeM="+typeM+"&pageRetour="+pageRetour+"&timestamp="+new Date().getTime(),
			success: function(html){
				$('#tableauCVSide').html(html);
			}
		});
}

