﻿/* Affiche un div et en cache un autre */
function AfficheCacheDiv(idDiv)
{
	if (document.getElementById(idDiv).style.display == "none")
	{
		document.getElementById(idDiv).style.display = "block";
	}
	else
	{
		document.getElementById(idDiv).style.display = "none";
	}
}
function AfficheCacheDivImg(idDiv, idImg)
{
	if (document.getElementById(idDiv).style.display == "none")
	{
		document.getElementById(idDiv).style.display = "block";
		document.getElementById(idImg).style.display = "none";
	}
	else
	{
		document.getElementById(idDiv).style.display = "none";
		document.getElementById(idImg).style.display = "block";
	}
}

/* Change la couleur d'un enregistrement d'un GridView lors du passage de la souris */
var _oldColor;
function SetNewColorRow(source)
{
	_oldColor = source.style.backgroundColor;
	source.style.backgroundColor = '#bfddee';
}
function SetOldColorRow(source)
{
	source.style.backgroundColor = _oldColor;
}
