/********************************************************
richiede conferma su operazioni varie (cancellazione etc.)
*********************************************************/
function confirmLink(theLink, msg) {

	var is_confirmed = confirm(msg);
	if (is_confirmed) {
		theLink.href
	}

	return is_confirmed;
}

/****************************************************************************
verifica siano stati specificati i campi nome e commento
id - id commento
****************************************************************************/
function validaCommento(id) {
   if (document.getElementById('name'+id).value!='' && document.getElementById('textComm'+id).value!='') {
      return true;
   } else {
      alert('I campi nome e commento sono obbligatori');
      return false;
   }
}

/****************************************************************************
apre form di votazione contenuto
idForm - id form contenuto da aprire
****************************************************************************/
function openForm(idForm) {
   document.getElementById(idForm).style.display='block';
}
