function testForm(loption){
		
	reTableau = new Array();
	
	reTableau['NV'] = /.+/;
	reTableau['NV_error'] = "est requis";
	
	reTableau['NUM'] = /^[0-9]$/;
	reTableau['NUM_error'] = "doit contenir un nombre";
	
	reTableau['ALPHANUM'] = /[\w]/;
	reTableau['ALPHANUM_error'] = "doit contenir des nombres ou des lettres";
	
	reTableau['EMAIL'] = /[-.\w]{2,}@{1}[\-\.\w]{2,}\.{1}[\-\.\w]{2,}/;
	reTableau['EMAIL_error'] = "doit contenir une adresse mail";
	
	reTableau['MINCAR'] = /.{6,}/;
	reTableau['MINCAR_error'] = "doit comporter 6 caractères";
	
	
	couleurNok = "#ff6600";
	
	errorLog = "";
	
	
	tablochamp = loption.split(',');
	nb = tablochamp.length;
	
	for (n=0;n<nb;n++){
		
		champExpr = tablochamp[n].split('=');
		nomDuChamp = champExpr[0];
		nomDeRegEx = champExpr[1];
					
		var OK = reTableau[nomDeRegEx].test($(nomDuChamp).value);
		
		if (!OK){
			// color
			$(nomDuChamp).style.background = couleurNok;
			regError = nomDeRegEx+'_error';
			errorLog += '['+nomDuChamp+'] '+reTableau[regError]+'\n';
			
		}
				
	}

	
	if(errorLog != ""){
		alert (errorLog);
		return false;
	}else{
		return true;
	}
	
}


function ResetCouleurError(leChamp){
/**
* DEPLOIEMENT :
* onfocus="ResetCouleurError(this);
* 
**/
	couleurOk = "#ffffff"
	$(leChamp).style.background = couleurOk ;
}

/* actualite presse */

var affiche_actu = function(date_actu){

	theParam = 'date_actu='+date_actu;
	new Ajax.Updater('liste_actu','ajax_news.php5', {parameters:theParam});
}

var affiche_presse= function(date_presse){
	theParam = 'date_presse='+date_presse;
	new Ajax.Updater('liste_presse','ajax_press.php5', {parameters:theParam});
}






