
function  campiobbligatori(){ 
var f = document.sampleform; 
if(f.nome.value == ""){ 
alert("Il campo \"nome\" non \è stato compilato") 
f.nome.focus(); 
return false; 
} 
if(f.cognome.value == ""){ 
alert("Il campo \"cognome\" non \è stato compilato") 
f.cognome.focus(); 
return false; 
}
if(f.email.value == ""){ 
alert("Il campo \"email\" non \è stato compilato") 
f.email.focus(); 
return false; 
} 
if(f.telefono.value == ""){ 
alert("Il campo \"telefono\" non \è stato compilato") 
f.telefono.focus(); 
return false; 
}
if(f.cellulare.value == ""){ 
alert("Il campo \"cellulare\" non \è stato compilato") 
f.cellulare.focus(); 
return false; 
} 
return true; 
} 
