function pulsateNotice()
{
	if ($('notice')){Effect.Pulsate('notice');}
}

function checkFirma ()
{
	var form = document.firma;
	var flag = true;
	
	if (!form.casata.value)
	{
		flag = false;
		form.casata.style.background = '#FFBFBF';
	}
	if (!form.nome.value)
	{
		flag = false;
		form.nome.style.background = '#FFBFBF';
	}
	if (!form.email.value)
	{
		flag = false;
		form.email.style.background = '#FFBFBF';
	}
	return flag;
}

function valid (id)
{
	if ($('lastInternet'+id))
	{
		Element.remove('valid'+id);
		$('lastInternet'+id).style.background = 'white';
	}
	Effect.DropOut('nonConf'+id);
	var ajax = new Ajax.Request('ajax.php?action=valid&id='+id);
}
function suppr (id, induve)
{
	var bg = $(induve+id).style.background;
	$(induve+id).style.background = 'yellow';
	
	if (confirm("Etes vous sur de supprimer cette signature ?"))
	{
		if (induve == "lastInternet")
		{
			Effect.DropOut("lastInternet"+id);
			if ($('nonConf'+id))
			{
				Effect.DropOut("nonConf"+id);
			}
		}
		else
		{
			if (induve == "lastPapier")
			{
				Effect.DropOut("lastPapier"+id);
			}
		}
		var ajax = new Ajax.Request('ajax.php?action=delete&id='+id);
	}
	else
	{
		$(induve+id).style.background = bg;
	}
}
