
w_limite = 238;
inc_width =50; // px
inc_time = 1; // ms
var w1 = 0;
var timer;

function show_comment(principale, secondaire)
{
	window.clearTimeout(timer);
	a = eval("div_" + secondaire);
	td = document.getElementById("td_" + principale);
//	td.innerHTML = a;
	go_anime_div(td, a);
}

function clear_comment(principale)
{
	window.clearTimeout(timer);
	td = document.getElementById("td_" + principale);
//	td.innerHTML = "";
	go_empty_div(td);
}

function go_anime_div(td, a)
{
	w1 += inc_width;
	if (w1 > w_limite)
	{
		w1 = w_limite;
		td.innerHTML = a;
	}
	else
	{
		td.innerHTML = "<div class=div1 style=\"width: "+w1+"\"></div>";
		timer = window.setTimeout("go_anime_div(td, a)", inc_time);
	}
}

function go_empty_div(td)
{
	w1 -= inc_width/2;
	if (w1 < 0)
	{
		w1 = 0;
		td.innerHTML = "";
	}
	else
	{
		td.innerHTML = "<div class=div1 style=\"background-color: transparent; width: "+w1+"\"></div>";
		timer = window.setTimeout("go_empty_div(td)", inc_time);
	}
}



function show(puce)
{
document.getElementById(puce).style.visibility="visible";

}
function hide(puce)
{
document.getElementById(puce).style.visibility="hidden";
}

function show2(puce,puce2)
{
document.getElementById(puce).style.visibility="visible";
document.getElementById(puce2).style.visibility="hidden";

}
function hide2(puce,puce2)
{
document.getElementById(puce).style.visibility="hidden";
document.getElementById(puce2).style.visibility="visible";
}


function check_valid()
{
	if ((document.getElementById("sess_user").value == '')||(document.getElementById("sess_pwd").value == ''))
	{
		alert('Veuillez saisir vos coordonnées !'); result = false;
	}
	else 
		result = true;
	
	return result;

//	alert('Coordonnées incorrectes'); return false;
}

