function actualiser()
{
   tri = document.form.tri.value; url = "?tri="+tri;
 annee = document.form.annee.value;   if (annee != "") url += "&annee="+annee
chaine = document.form.chaine.value; if (chaine != "") url += "&chaine="+chaine
  type = document.form.type.value;     if (type != "") url += "&type="+type
lettre = document.form.lettre.value; if (lettre != "") url += "&lettre="+lettre

	location.replace(url);
}


function changeFond(id,action)
	{
	if (action == 1)
		document.getElementById("onglet" + id).style.background = "#F90";
	else
		document.getElementById("onglet" + id).style.background = "#E8E79B";
	}


function doit()
{
	im = document.getElementsByTagName("img"); c = 0; z = "0";

	for (var i = 0; i < im.length; i++)
		{
		if (im[i].className == "db")
			{
			el = im[i].parentNode.parentNode.parentNode.parentNode;
			p = '%69%6D%67%2D%64%62/'+el.getAttribute("tp")+'/'+el.getAttribute("tt")+'/'+el.getAttribute("a")+'_'+z+im[i].getAttribute("n")+'%2E%6A%70%67';
			im[i].style.backgroundImage = 'url('+p+')';
			c++; if (c == 10) z = "";
			}
		}
}


function doKeypress(el,evt)
{
	var key = (evt) ? evt.which : event.keyCode;
	maxLength = el.getAttribute("maxlength");
	length = el.value.length;

	if (length > maxLength-1)
		{
		if ((key != 8) && (key != 0))
			return false;
		}
}
