//ATTENZIONE! NON RIMUOVERE LE RIGHE SEGUENTI !!!
//L'autore acconsente all'utilizzo di questo script soltanto senza
//fini di lucro e senza rimuovere questa indicazione di proprietà.
//Autore: A. Pojer - mail: alex_train@yahoo.it 
//ATTENZIONE! NON RIMUOVERE LE RIGHE SOPRA !!!

numero = new Array();
MAX_NUM=6;

//Genera 6 numeri casuali
num=0;
while (num<MAX_NUM) {  
	numero[num] = Math.round(Math.random()*100);
	if ((numero[num]<=90) && (numero[num]>0)) {
		gia_estratto=0;
		for (k=0 ; k < num ; k++) {
			//Numero da scartare perchè già estratto
			if (numero[num]==numero[k]) {
				gia_estratto=1;
				}
			}
 		if (gia_estratto==0) {
			num++;
			}
		}	
	}

for (j=0 ; j < MAX_NUM ; j++) {
	lower=numero[j];
	for (k=j ; k < MAX_NUM ; k++) {
		if (lower>numero[k]) {
			temp=lower;
			lower=numero[k];
			numero[k]=temp;
			}
		}
	numero[j]=lower;

	//numero[j]=lower;	
//	document.write("<TD VALIGN=\"middle\" ALIGN=\"center\" BGCOLOR=\"yellow\" CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" HEIGHT=\"10\" WIDTH=\"10\">");
//	document.write("<FONT SIZE=3 COLOR=\"red\" FACE=\"ARIAL\">");
//	document.write(lower);
//	document.write("</FONT>");
//	document.write("</TD>");

	}
   
