var flag1;
var flag2;
var flag3;
var flag4;
var flag5;
var testo1a;
var testo2a;
var testo3a;
var testo4a;
var testo5a;
var h1,h1a;
var h2,h2a;
var h3,h3a;
var h4,h4a;
var h5,h5a;
function resetta(s)
{
var s1;
stato=new Array();
s1=s;

if (s1.charAt(0)=="0") { stato[0]='none';} else  { stato[0]='block';};
if (s1.charAt(1)=="0") { stato[1]='none';} else  { stato[1]='block';};
if (s1.charAt(2)=="0") { stato[2]='none';} else  { stato[2]='block';};
if (s1.charAt(3)=="0") { stato[3]='none';} else  { stato[3]='block';};
if (s1.charAt(4)=="0") { stato[4]='none';} else  { stato[4]='block';};
if (s1.charAt(5)=="0") { stato[5]='none';} else  { stato[5]='block';};
if (s1.charAt(6)=="0") { stato[6]='none';} else  { stato[6]='block';};
if (s1.charAt(7)=="0") { stato[7]='none';} else  { stato[7]='block';};
if (s1.charAt(8)=="0") { stato[8]='none';} else  { stato[8]='block';};






document.getElementById("a1").style.display=stato[0];
document.getElementById("a2").style.display=stato[1];
document.getElementById("a3").style.display=stato[2];
document.getElementById("a4").style.display=stato[3];
document.getElementById("a5").style.display=stato[4];
document.getElementById("a6").style.display=stato[5];
document.getElementById("a7").style.display=stato[6];
document.getElementById("a8").style.display=stato[7];
document.getElementById("a9").style.display=stato[8];

}	
function settaggio(i)  { 



/*------------------------------------------*/
if (i==1) {
          
         					
		resetta("100100100");	
		}           					
			 
 /*----------------------------------------*/
if (i==2) {

		resetta("010100100");	
			 }

/*----------------------------------------*/
if (i==3) {

 		resetta("001100100");	
			 }
/*----------------------------------------*/

/*----------------------------------------*/
if (i==4) {

 		resetta("100100100");	
			 }
/*----------------------------------------*/
/*----------------------------------------*/
if (i==5) {

 		resetta("100010100");	
			 }
/*----------------------------------------*/
/*----------------------------------------*/
if (i==6) {

 		resetta("100001100");	
			 }
/*----------------------------------------*/
if (i==7) {

 		resetta("100100100");	
			 }
/*----------------------------------------*/
if (i==8) {

 		resetta("100100010");	
			 }
/*----------------------------------------*/
if (i==9) {

 		resetta("100100001");	
			 }
/*----------------------------------------*/



 /*--------TAPPO----------*/
 }/*----END FUNCTION-----*/


