prova così
if (document.form1.nome.value == "")
{
alert("Inserire un valore per il campo \"nome\".");
document.form1.nome.focus();
eval("document.form1.nome.style.backgroundColor='# FFFF00'");
return (false);
}
prova così
if (document.form1.nome.value == "")
{
alert("Inserire un valore per il campo \"nome\".");
document.form1.nome.focus();
eval("document.form1.nome.style.backgroundColor='# FFFF00'");
return (false);
}