//___www.claudevelasti.com___
var ls_testa_ante="<div style='font-weight:normal; display:inline'>[</div>"; var ls_testa_post="<div style='font-weight:normal; display:inline'></div>";
var ls_corpo_ante=""; var ls_corpo_post=""; var ls_corpo_freccia=" >>";
var ls_corpo_select="#ff7700";
var ls_popup="";

document.onselectstart=new Function("return false"); document.ondragstart=new Function("return false");

function masque(as_element){document.getElementById(as_element).style.visibility="hidden";}
function montre(as_element){
	if(document.getElementById(as_element)){document.getElementById(as_element).style.visibility="visible";}
	else{alert(alerte[as_element]);}
}
function echange(as_id){//pq display=="" au premier appel de la fonction???
	if(document.getElementById(as_id).style.display=="none" || document.getElementById(as_id).style.display==""){document.getElementById(as_id).style.display="inline";}
	else{document.getElementById(as_id).style.display="none";}
}
function popup(as_doc){
	var lt_source=as_doc.split(",");
	if(screen.width && screen.height){var screen_L=screen.width; var screen_H=screen.height; }
	else{var screen_L=800; var screen_H=600;}
	var ls_detail="menubar=no, status=no, statusbar=no, toolbar=no, top="+(screen_H-lt_source[2])/2+", left="+(screen_L-lt_source[1])/2+", width="+lt_source[1]+", height="+lt_source[2];
	ls_popup=window.open(lt_source[0], "", ls_detail);
	return ls_popup;
}
function verif_popup(){if(ls_popup!=""){ls_popup.close();}}

var gt_debut=new Array(); gt_debut[0]=true;
function trix(ao_div){
	if(gt_debut[0]){ao_div.style.backgroundColor=="#00aa00" ? ao_div.style.backgroundColor="" : ao_div.style.backgroundColor="#00aa00";}
	else{
		//alert(tab[ao_div.name+"_type"].multi_colonne);
		if(tab[ao_div.name+"_type"].multi_colonne=="oui"){
		//alert("oui");
		ao_div.style.borderLeftColor=="#ff2200" ? ao_div.style.borderLeftColor="" : ao_div.style.borderLeftColor="#ff2200";
		}
		else{
		//alert('non');
		ao_div.style.borderTopColor=="#ff2200" ? ao_div.style.borderTopColor="" : ao_div.style.borderTopColor="#ff2200";
		}
	}
}
function verif_extension(as_nom, as_ext){//as_nom=nom du fichier / as_ext=extension du fichier sans le point!
	var ls_nom=as_nom.toLowerCase(); var ln_ext="^.+"+as_ext.toLowerCase()+"$"; var ln_extension=new RegExp(ln_ext);
	if(!as_nom.search(ln_extension)){var ls_retour=true;}
	else{var ls_retour=false;}
	return ls_retour;
}
function flop(ao_element, as_color){ao_element.style.color!=as_color ? ao_element.style.color=as_color : ao_element.style.color="";}
function allume(as_objet){top.document.getElementById(as_objet).style.color="#ffaa44";}
function eteind(as_objet){top.document.getElementById(as_objet).style.color="#dd5522";}

