
function hide_alert(id) 
{ 
	// new Effect.Opacity('AlertBox'+id, {duration:1, from:1.0, to:0});
	//document.getElementById('alert').innerHTML=''; 	
	document.getElementById('AlertBox'+id).innerHTML=''; 
	document.getElementById('AlertBox'+id).style.display='none';
	if (id==0) { 
		document.getElementById('alert').innerHTML=''; 
	}
}

function alert_msg(msg,id) 
{ 
	//document.getElementById('alert').style.display='inline'; 
	new Ajax.Updater('alert', '/ajax_alert_msg.php?msg='+msg+'&id='+id, {asynchronous:true});
}

function fav(id,x) 
{
	new Ajax.Updater('fv'+id, '/ajax_fav.php?x='+x+'&id='+id, {asynchronous:true});
}

function v(x) 
{
	new Ajax.Updater('null', '/ajax_v.php?x='+x, {asynchronous:true});
}

// Funzioni per mostrare le informazioni di una textbox
function swInf(target) { document.getElementById('info_'+target).style.display='inline'; }
function hdInf(target) { document.getElementById('info_'+target).style.display='none';   }