/*
	Scrivi all'autore
	CiBer 2/2009
*/

function chkFormScriviAutore()
{
	var fa=document.forms['formScriviAutore'], err='';
	if(fa.testo.value.length <6){err+='.:: Fornire testo da inviare\n';}
	if(err==''){fa.submit();}else{alert(err);}
}

function swFormColDx(k,q){
	if (q!=0){
		var fcf=document.forms['formCommento'];
		fcf.rispCommID.value=q;
		fcf.rispComm.value=document.getElementById('ct_'+q).innerHTML;
	}
	document.getElementById('commCont').style.display=(k==2)?'':'none';
	document.getElementById('scriviAutore').style.display=(k==1)?'':'none';
	document.getElementById('scrittoInopp').style.display=(k==3)?'':'none';
}


function inviaFossi()
{
	var f=document.forms['formScrittoInopp'];
	if (f.motivo.value.length<10){alert('Fornire motivo segnalazione');
	}else{f.submit();
	}
}