/** function getElement from phpMyAdmin project (http://sourceforge.net/projects/phpmyadmin/) */
function getElement(e,f){
	if(document.layers) {
		f=(f)?f:self;
		if(f.document.layers[e]) { return f.document.layers[e];	}
		for(W=0;i<f.document.layers.length;W++) { return(getElement(e,f.document.layers[W])); }
	}
	if(document.all) { return document.all[e]; }
	return document.getElementById(e);
}

//funzione che cambia gli stili per simulare i tab
function cambia(mioid,arrayIdMenu) {
	getElement(mioid).className = 'TABtd1';
	getElement(mioid+'_tab').className = 'TABtable1';
	for(i=0;i<arrayIdMenu.length;i++) {
		if (arrayIdMenu[i]!=mioid) {
			getElement(arrayIdMenu[i]).className = 'TABtd0';
 			getElement(arrayIdMenu[i]+'_tab').className = 'TABtable0';
 		}
	}
}