/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 giovedì 5 giugno 2008 11.57.12
 - - - - - - - - - - - - - - - - - - - - - - - */
function controllaTitolo(){
var oTitoloCommenti = document.getElementById("titoloCommenti");
var divTitoloCommenti = document.getElementById("dTitoloCommenti");
if (oTitoloCommenti.value == "")
   {
       oTitoloCommenti.style.backgroundColor="#FF6E6E";
       divTitoloCommenti.style.color="#FF0000";
       divTitoloCommenti.innerHTML="Il campo Titolo non può essere vuoto!";
   }else
       {
           oTitoloCommenti.style.backgroundColor="";
           divTitoloCommenti.innerHTML="";
       }
}
function controllaTesto(){
var oTestoCommenti = document.getElementById("testoCommenti");
var divTestoCommenti = document.getElementById("dTestoCommenti");
if (oTestoCommenti.value == "")
   {
       oTestoCommenti.style.backgroundColor="#FF6E6E";
       divTestoCommenti.style.color="#FF0000";
       divTestoCommenti.innerHTML="Il campo Testo non può essere vuoto!";
   }else
       {
           oTestoCommenti.style.backgroundColor="";
           divTestoCommenti.innerHTML="";
       }
}
function controllaAutore(){
var oAutoreCommenti = document.getElementById("autoreCommenti");
var divAutoreCommenti = document.getElementById("dAutoreCommenti");
if (oAutoreCommenti.value == "")
   {
       oAutoreCommenti.style.backgroundColor="#FF6E6E";
       divAutoreCommenti.style.color="#FF0000";
       divAutoreCommenti.innerHTML="Il campo Autore non può essere vuoto!";
   }else
       {
           oAutoreCommenti.style.backgroundColor="";
           divAutoreCommenti.innerHTML="";
       }
}
