//	Auteur 			: Dauvergne François-xavier
//	Mail 			: fxd@multi-hardware.com
//	Date de création 	: 23/07/2002
//	Modifié le 		: 23/07/2002 par Dauvergne François-xavier
//	Version 		: V1.0		

function onLien(cible,coul,test)
{
	if(!test || (test && (findObjet('clicked').value != test)))
	{
		cible.style.cursor='hand'; 
		cible.style.background=coul; 
		if(!test) change();
	}
}

function outLien(cible,coul,test)
{
	if(!(test && (findObjet('clicked').value == test)))
	{
		if(!coul)cible.style.background = '#000050';
		else cible.style.background = coul;
	}
}   

function OpenPopUp(Name, URL, width, height, barre, top, left)
{
	if(barre)barre = "yes";
	else barre = "no";
	if(top) top2 = top;
	else top2 = "50";
	if(left) left2 = left ;
	else left2 = "100";
	var wndopt = "width="+width+",height="+height+",top="+top2+",left="+left2+",toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=" + barre;
	NewWin = window.open(URL, Name, wndopt);
}

function redirect(lien,dest,n)
{
	if(dest)
		parent.frames[dest].location = lien;
	else if(n == "true")
		window.open(lien);
	else
		document.location.href = lien;
}

function confirmation(phrase,URL,dest)
{
	if(confirm(phrase))
		redirect(URL,dest);
}

function findObjet(name)
{
	objet = document.all?document.all[name]:document.getElementById(name);
	return objet;
}

// à virer apres develeoppement
function propriete(obj,nom)
{
	i = 0;
	resultat = "";
	for (i in obj)
	{
		resultat += nom + "." + i + " = " + obj[i] + "<br>";
	}
	document.write(resultat);
}
