                         function solcr_verif2(letat)
{	
  if (document.selection.letat.options.selectedIndex == "0")
	{
		document.selection.lasolution.options.length = 1;
		document.selection.lasolution.options.selectedIndex = 0;
	}
	else if (letat == "1" || letat == "2")
	{
		document.selection.lasolution.options.length = 3;
		for(i = 0, j = 1; i <=1; i++, j++){
    		document.selection.lasolution.options[j].text = tablo2[i];
			document.selection.lasolution.options[j].value = i+1;
		}
	}
	document.selection.lasolution.options.selectedIndex = 0;
	document.selection.letype.options.length = 1;
	document.selection.letype.options.selectedIndex = 0;
}

function solcr_verif(letat, lasolution)
{
	if (letat == "1" && lasolution == "1")
	{
		document.selection.letype.options.length = 3;
		for(i = 0, j = 1; i <=1; i++, j++){
    		document.selection.letype.options[j].text = tablo[i];
			document.selection.letype.options[j].value = i+1;
		}
	}
	else if (letat == "2" && lasolution == "1")
	{
		document.selection.letype.options.length = 4;
		for(i = 2, j = 1; i <=4; i++, j++){
    		document.selection.letype.options[j].text = tablo[i];
			document.selection.letype.options[j].value = i+1;
		}
	}
	else if (letat == "2" && lasolution == "2")
	{
		document.selection.letype.options.length = 3;
		for(i = 5, j = 1; i <=6; i++, j++){
    		document.selection.letype.options[j].text = tablo[i];
			document.selection.letype.options[j].value = i+1;
		}
	}
	else if (letat == "1" && lasolution == "2")
	{
		document.selection.letype.options.length = 2;
		for(i = 7, j = 1; i <=7; i++, j++){
    		document.selection.letype.options[j].text = tablo[i];
			document.selection.letype.options[j].value = i+1;
		}
	}
}

function reset_all(){
	document.selection.lasolution.options.selectedIndex = 0;
	document.selection.letype.options.length = 1;
	document.selection.letype.options.selectedIndex = 0;
}

function reset_form(){
	document.selection.letat.options.selectedIndex = 0;
	document.selection.lasolution.options.selectedIndex = 0;
	document.selection.letype.options.selectedIndex = 0;
}

function check_all(){

if (document.selection.letat.value == "" || document.selection.lasolution.value == "" || document.selection.letype.value == "")
	alert("vous devez selectionner tous les critères");
else	
	document.selection.submit();
}


