function segnalaComm(k)
{
	var t='<form method="post" action="" id="formCommOff'+k+'" name="formCommOff'+k+'">'
		+'<fieldset class="fl0"><legend>Motivo della segnalazione</legend><textarea name="commentoOff" rows=5 style="width:99%;"></textarea></fieldset>'
		+'<input type="Hidden" name="kComm" value="'+k+'"><input type="Hidden" name="txtCommSegnalato" value="'+document.getElementById('c'+k).innerHTML+'">'
	+'<fieldset><legend>Conferma</legend><input type="Button" value="Conferma segnalazione scritto inopportuno" onclick="chkFormCommOff('+k+')"></fieldset></form>';
	document.getElementById('c'+k).innerHTML=t;
}


function chkFormCommOff(k)
{
	var fco=document.forms['formCommOff'+k];
	if (fco.commentoOff.value != ''){fco.submit();}else{alert('Fornire motivo Segnalazione');}
}


function delScritto(k,id,tp,sub)
{
	if(confirm("Confermi cancellazione scritto?")){self.location='page.cfm?page=scrittoDel&k='+k+'&idArt='+id+'&tp='+tp+'&sub='+sub;}
}
