function controlla_ordine (idul) {
	combinazione_corretta = new Array("1","2","3","4","5","6","7","8","9","10","11");
	nuova_combinazione = new Array();
	var errore=0;
	
	var ids = document.getElementById(idul);
	var ids_nodes = ids.childNodes;
	
	for(var i = 0; i < ids_nodes.length; i++) {
		nuova_combinazione[i]=""+ids_nodes[i].id+"";
		if(nuova_combinazione[i]!=combinazione_corretta[i]) errore++;
	}
	if(combinazione_corretta.join()==nuova_combinazione.join()) {
		document.getElementById("risultato").className = "check_corretto";
		document.getElementById("risultato").innerHTML = "<span class='corretto1'>OTTIMO! ORDINAMENTO CORRETTO!</span>";
	}
	else {
		document.getElementById("risultato").className = "check_errato";
		if(errore==1) testo_errore="E' STATO RILEVATO "+errore+" ERRORE. RIPROVA!"
		else testo_errore="SONO STATI RILEVATI "+errore+" ERRORI. RIPROVA!"
		document.getElementById("risultato").innerHTML = "<span class='errato1'>ATTENZIONE!<br />"+testo_errore+"</span>";
	}
}
