function test_email (my_email) {
	var new_string = new String(my_email);
	if(!new_string.match('^[-_\.0-9a-zA-Z]{1,}@[-_\.0-9a-zA-Z]{1,}[\.][0-9a-zA-Z]{2,}$')){
		return false;
	}else{
		return true;
	}
}
function verifMail(){
	if(test_email(document.getElementById('email').value) == true){
		//document.getElementById('formNewsletter').submit();
		return true;
	}else{
		$('#errorMail').html('<span class="red">Invalid mail!</span>');
		return false;
	}
}

function confirme(nom){
	if(confirm('Voulez-vous supprimer '+nom+' ?')){
		return true;
	}else{
		return false;
	}
}
function afficheExposant(num){
	$.ajax({url: BASE+"/datas/includes/changeliste.php",
			global: false,
			type: "POST",
			data: ({numero 		: num}),
			dataType: "html",
			async:false,
			success: function(msg){
				$('#listeexhib').html(msg);
				
			}
	});
}
function clickMenu(id){
	if($('#'+id).css('display') == 'block'){
		$('#'+id).slideUp();
	}else{
		$('#'+id).slideDown();
	}
}
