/* 

TP 2008 | © [BCCT]



*/

function cleanValue(ele, arg)
{
	ele.value = arg;
	ele.onfocus = function()
	{
		this.value = "";
	}
	ele.onblur = function()
	{
		if(this.value == "")
		{
			this.value = arg;
		}
	}
}

btSelect = "";
backRollSelect = "";
function swapIMG(ele, sourceRoll, sourceClick)
{
	var backRoll = ele.src;
	
	ele.onmouseover = function()
	{
		if(btSelect!=this)
		{
			this.src = sourceRoll;
			this.style.cursor = "pointer";
		}
	}
	ele.onmouseout = function()
	{
		if(btSelect!=this)
		{
			this.src = backRoll;
		}
	}
	ele.onclick = function()
	{
		if(btSelect!=this)
		{
			btSelect.src = backRollSelect;
			this.src = backRoll;
			backRollSelect = this.src;
			this.src = sourceClick;
			btSelect = this;
		}
	}
}

