	
function prenotaForm(sel){
	if(sel)selTab(297);
}


//=============================================== accende tab selezionato (IDTab) e spegne quello attualmente attivo
function selTab(IDTab){
	var myDiv;
	
		//spegne vecchio
		if((active_Tab==1)||(active_Tab+''=='undefined')||(active_Tab+''==''))active_Tab=283;				//predefinito(descrizione)
			
		myDiv = $('label_' + IDTab);
		
		//spegne vecchio
		Element.removeClassName($('label_' + active_Tab),'tabON');
		Element.addClassName($('label_' + active_Tab),'tabOFF');
		$('tabcontent_' +active_Tab).hide();
		//accende nuovo
		Element.removeClassName(myDiv,'tabOFF');
		Element.addClassName(myDiv,'tabON');
		$('tabcontent_' + $(myDiv).id.split('_')[1]).show();
		
		//imposta active_Tab per prossime chiamate
		active_Tab =  IDTab;

		//alert('click ->' + active_Tab)
		
		ver_sActiveTab();

}

