function confirmer(texte){
	return confirm(texte);
}
function cacher(){
	if(document.getElementById('erreur').style.display == "none"){
		return false;
	}else{
		//alert('coucou');
		//document.getElementById('erreur').style.display = 'none';
		Effect.Fade('erreur',{duration:0.4});
		//Effect.multiple('erreur', Effect.DropOut, {speed:0.07, afterFinishInternal:function(){Effect.Fade('erreur',{duration:0.4})}}); return false;
	}
}
function rollon(id, queue){
	//id.color = $(id).style.backgroundColor;
	new Effect.Highlight(id, {queue:{scope:queue, position:'end'}, duration:0.4, startcolor:'#999999'});
}
function changeCouleur(ligne){
	this.color = ligne.style.backgroundColor;
	ligne.style.backgroundColor ="#62c2ec";
}
function changeCouleur2(ligne){
	this.color = ligne.style.backgroundColor;
	ligne.style.backgroundColor ="#d0e6f1";
}

function remetCouleur(ligne){
	//ligne.bgColor = '#FFFFFF';
	ligne.style.backgroundColor = this.color;
}

function afficheDiv(id){
	jQuery('#bloc'+id).slideToggle();
}

function fermerShadowBox(){
	Shadowbox.close();
}

function message(html, fermetureAuto, delai){
	Shadowbox.open({
        player:     'html',
        content:    '<div class="shadowbox_message">'+html+'</div>',
        height:     125,
        width:      250
    });
	if(fermetureAuto == undefined){
		fermetureAuto = false;
	}
	if(delai == undefined){
		delai = 5000;
	}
	if(fermetureAuto == true){
		setTimeout(fermerShadowBox, delai);
	}
}