codice:
function convalida() {
 if (document.nomeform.pianifica.checked = true) {
  if (document.nomeform.data.value = "" || document.nomeform.ora.value = "") {
   alert("compila i campi");
  }
 }
}