<!-- 

function convalidaNumero(form){
	if ((form.numeroSel.value=="") || (isNaN(parseInt(form.numeroSel.value))==false)) { return true }
	else { 
	alert("inserire un numero valido");
	form.numeroSel.select();
	return false;}
}

function convalidaGiorno(form){
	strGiorno=form.giornoSel.value
	if (strGiorno.charAt(0)=="0") {strGiorno=strGiorno.charAt(1)}
	if ((strGiorno=="") || ((isNaN(parseInt(strGiorno))==false)) && (1<=(parseInt(strGiorno)) && (parseInt(strGiorno))<=31)) { return true }
	else { 
	alert("inserire un giorno valido");
	form.giornoSel.select();
	return false;}
}

function convalidaMese(form){
	strMese=form.meseSel.value
	if (strMese.charAt(0)=="0") {strMese=strMese.charAt(1)}
	if ((strMese=="") || ((isNaN(parseInt(strMese))==false)) && (1<=(parseInt(strMese)) && (parseInt(strMese))<=12)) { return true }
	else {
	alert("inserire un mese valido");
	form.meseSel.select();
	return false;}
}

function convalidaAnno(form){
	if ((form.annoSel.value=="") || ((isNaN(parseInt(form.annoSel.value))==false)) && ((parseInt(form.annoSel.value))>=1900)) { return true }
	else {
	alert("inserire un anno valido");
	form.annoSel.select();
	return false;}
}

function convalidaData(form){
// se uno specifica solo il giorno senza il mese e l'anno oppure solo il mese senza l'anno
	if (!convalidaGiorno(form) || !convalidaMese(form) || !convalidaAnno(form) || (form.giornoSel.value!="" && form.meseSel.value=="" && form.annoSel.value=="") || (form.meseSel.value!="" && form.annoSel.value=="") || (form.giornoSel.value!="" && form.meseSel.value=="" && form.annoSel.value!=""))
	{
	alert("inserire i campi data come specificato");
	return false
	}
	else {
	return true
	}
}
// -->
