function TabellaSelezione(variabile,tag,titoli,fileCss,stileTabella,stileTitolo,stileSelezione) {
	this.inizializza(variabile,tag,titoli,fileCss,stileTabella,stileTitolo);
	this.stileSelezione=stileSelezione;
};

TabellaSelezione.prototype.__proto__ = Tabella.prototype;
TabellaSelezione.prototype = new Tabella(null,null,false,null,"","");
TabellaSelezione.prototype.constructor = TabellaSelezione;

TabellaSelezione.prototype.aggiungiRiga=function (chiave,select){
	var riga=this.dati[this.dati.length]=new RigaSelezionata(chiave,select);
	return riga;
}


TabellaSelezione.prototype.crea=function (contenitore){
	this.tipo=new Selettore(this);
	this.creaTabella(contenitore)
	this.tipo.ripristinaSelezionati();
}

TabellaSelezione.prototype.ordina=function (col,tipo){
	this.ordinaRic(col,0,this.dati.length-1,tipo);
	this.tipo.impostaSelettore();
	this.tabe.outerHTML=this.toString();
	this.tabe=eval(this.tag);
	this.tipo.ripristinaSelezionati();
}

TabellaSelezione.prototype.valoriSelezionati=function (){
	var testo="";
	for( var i in this.dati)
		if (this.dati[i].selezionata)
			testo+= this.dati[i].chiave + ","
	if (testo!="")
		return testo.substring(0,testo.length-1);
	else
		return testo;
}
