function checkForm(which){	var msg_alert = "Attenzione!\nSi sono verificati i seguenti problemi:\n";	var pass = true;	var pass_check = true;	var conta_check = 0;	var contatto_sel = "";	for(i=0;i<which.length;i++){		//ORE PRENOTATE				if((which.elements[i].name=="ore_prenotate[]")&&(which.elements[i].checked)){			conta_check++;		}		//NOME		if((which.elements[i].name=="nome")&&(which.elements[i].value=="")){			msg_alert += "- Nome non completato\n";			pass = false;		}		//COGNOME		if((which.elements[i].name=="cognome")&&(which.elements[i].value=="")){			msg_alert += "- Cognome non completato\n";			pass = false;		}		//EMAIL		if((which.elements[i].name=="email")&&(which.elements[i].value=="")){			msg_alert += "- Email non completato\n";			pass = false;		}		//DATI PERSONALI		if((which.elements[i].name=="dati_personali")&&(!(which.elements[i].checked))){			msg_alert += "- Trattamento dati personali non accettato\n";			pass = false;		}	}		if(conta_check == 0){		msg_alert += "- Nessuna fascia oraria selezionata\n";		pass = false;	}else if(conta_check > 1){		msg_alert += "- Troppe fasce orarie selezionate\n";		pass = false;	}	if(!pass){		alert(msg_alert);		return false;	}else{		return true;	}}function submit_form(dest,form_name) {	document[form_name].action = dest;	document[form_name].submit();	return true;}function goToURL(dest) {  window.location = dest;}