var criteres= location.search.substring(1);
var url="fiches_tech.html?";
function maj(label,aa) {
	var rechRapide = document.getElementById(label).value; 

	if (rechRapide=="") {
		deb=criteres.indexOf("rec"+aa);
//		alert("deb: "+deb);
		fin=criteres.substring(deb);
//		alert(fin);
		rechOld=fin.substring(0,fin.indexOf("&")+1);
//		alert("fin: "+fin);
		criteres=criteres.replace(rechOld,"");
	} 
	else criteres+="rec"+aa+"="+escape(rechRapide)+"&";
	
	document.location.href=""+url+criteres;
}

function affiche_fiche(ID)	{
//	var popupImage = window.open('pdf/fiches_tech/'+nom+'.pdf','fiches_tech','width=800, height=700, status=1,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	var popupImage = window.open('fiches_tech-popup.php?ID='+ID+'','fiches_tech','width=800, height=700, status=0,toolbar=1,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
}
