function controlla()
{
if ((document.registrato1.codicedci.value=="") || (document.registrato1.codicedci.value==null))
	{
	 alert("Non hai inserito il Numero DCI");
	return false;
	}
else if ((document.registrato1.password.value=="") || (document.registrato1.password.value==null))
	{
	 alert("Non hai inserito la password");
	return false;
	}
	
return true;
}


function controlla2()
{
if ((document.registrato2.email.value=="") || (document.registrato2.email.value==null))
	{
	 alert("Non hai inserito la mail");
	return false;
	}
else if ((document.registrato2.pass.value=="") || (document.registrato2.pass.value==null))
	{
	 alert("Non hai inserito la password");
	return false;
	}
	
return true;
}

function controlla3()
{
if ((document.registrato3.codicedci.value=="") || (document.registrato3.codicedci.value==null))
	{
	 alert("Non hai inserito il Numero DCI");
	return false;
	}
else if ((document.registrato3.password.value=="") || (document.registrato3.password.value==null))
	{
	 alert("Non hai inserito la password");
	return false;
	}
	
return true;
}



function inviare()
{
if (controlla()){
	document.registrato1.action="service/controllapwd.php";
	return true;
				}
else
	return false;
}


function inviare3()
{
if (controlla3()){
	document.registrato3.action="service/controllapwd2.php";
	return true;
				}
else
	return false;
}




function inviare2()
{
if (controlla2()){
	document.registrato2.action="service/controllamailpwd.php";
	return true;
				}
else
	return false;
}
