codice:
<HTML>
<HEAD>

<script language="JavaScript">
function convalidaForm(){

if(!document.getElementById('lista').checked && !document.getElementById('forfait').checked){
alert("Devi selezionare una opzione");
document.getElementById('errore').innerHTML='*';
return false;
}
if(!document.getElementById('AttNC').disabled){
if(document.getElementById('AttNC').value == 'Nessuna' || document.getElementById('AttNC').value == ''){
alert("Devi devi inserire una.....");
document.getElementById('AttNC').focus();
return false;
}
}
if(document.getElementById('uoat').options.selectedIndex == 0 ){
alert("Seleziona una voce uoat");
document.getElementById('uoat').focus();
return false;
}
if(document.getElementById('data_inizio').value == "" ){
alert("Inserisci una data inizio");
document.getElementById('data_inizio').focus();
return false;
}
if(document.getElementById('data_fine').value == "" ){
alert("Inserisci una data fine");
document.getElementById('data_fine').focus();
return false;
}
if(document.getElementById('nomi').options.selectedIndex == 0 ){
alert("Seleziona un nome dalla lista");
document.getElementById('nomi').focus();
return false;
}
if(document.getElementById('annotazioni').value == 'Nessuna' || document.getElementById('annotazioni').value == ''){
alert("Devi devi inserire una.....");
document.getElementById('annotazioni').focus();
return false;
}

}
</script>
</HEAD>

<body> 

<form name="MyForm" action="altrapag.asp" method="post" onsubmit="return convalidaForm();">
<span id="errore"></span>
Lista:   <input type="checkbox"  id="lista" name="lista" value="Si" onClick="if(this.checked){document.getElementById('forfait').disabled=true;document.getElementById('forfait').checked=false}else{document.getElementById('forfait').disabled=false}">
Forfait: <input type="checkbox" id="forfait" name="forfait" value="Si" onClick="if(this.checked){document.getElementById('lista').disabled=true;document.getElementById('lista').checked=false}else{document.getElementById('lista').disabled=false}">

<select size="1" id="AttC" name="AttC" onChange="if(this.options.selectedIndex != 0){document.getElementById('AttNC').disabled=true;document.getElementById('AttNC').value='';}else{document.getElementById('AttNC').disabled=false;document.getElementById('AttNC').value='Nessuna'}">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
   ... 
</select>
<textarea name="AttNC" cols="32" rows="5" id="AttNC" onFocus="if(this.value=='Nessuna')this.value=''" onBlur="if(this.value=='')this.value=defaultValue">Nessuna</textarea>
<select size="1" name="uoat" id="uoat">
  <option selected>Seleziona uoat</option>
  <option value="rm">rm</option>
  <option value="cb">cb</option>
  <option value="lt">lt</option>
  <option value="vt">vt</option>
  <option value="pe">pe</option>
  <option value="aq">aq</option>
  </select>
  
  <input type="text" name="data_inizio" id="data_inizio" size="20">
  <input type="text" name="data_fine" id="data_fine" size="20">
  
  <select size="4" name="nomi" id="nomi" multiple>
  <option selected>Seleziona nome</option>
  <option value="pippo">pippo</option>
  <option value="tizio">tizio</option>
  <option value="caio">caio</option>
  <option value="sempronio">sempronio</option>
  </select>
  
  <textarea rows="2" name="annotazioni" id="annotazioni" cols="20" onFocus="if(this.value=='Nessuna')this.value=''" onBlur="if(this.value=='')this.value=defaultValue" >Nessuna</textarea>
  <input type="submit" name="Submit" value="Submit">
</form>

</body>
</html>