function VER5_Check() {
	var b = navigator.appName;
	if (b == "Netscape") this.b = "NS";
	else if (b == "Microsoft Internet Explorer") this.b = "IE";
	this.v = parseInt(navigator.appVersion);
	this.IE5 = (navigator.userAgent.indexOf('MSIE 5') > 0);
	this.NS5 = (this.b >= "NS" && this.v >= 5);
	this.VER5 = (this.IE5 || this.NS5);
}
is = new VER5_Check();
//alert(is.b)
var jargonSelect = new Array();

function azzera() {
  for(i=1;i<91;++i){
		var Cell = document.getElementById(i);
		Cell.style.backgroundColor = ""
		jargonSelect[i]=0
  }
  var cell=document.getElementById("100");
	//cell.setAttribute('value','');
	cell.value="";
	var cellqta=document.getElementById("99");
	cellqta.value="";
}

function highlight(myId) {
	var iqta=0;
  var testo="";	
  var myCell = document.getElementById(myId);
  if(myCell.style.backgroundColor == ""){
	  myCell.style.backgroundColor = "\#D8E8F5";
      jargonSelect[myId]=myId;
  } 	  
  else {
	    myCell.style.backgroundColor = "";
        jargonSelect[myId]=0;
  }  
  	for(i=0;i<jargonSelect.length;++i){
		if(jargonSelect[i]>0){
			if (testo.length>0) {
				testo+='.';		
			}
			testo+=jargonSelect[i];			
			iqta+=1;
		}
  	}
	var cell=document.getElementById("100");
	//cell.setAttribute('value',testo)	
	cell.value=testo;
	var cellqta=document.getElementById("99");
	cellqta.value=iqta;
}
