function salva()
{
	if(document.theForm.giornata.value == "")
	{
		alert("Inserisci il numero di giornata del calendario");
		return false;
	}
	document.theForm.submit();
}

function checkLogin()
{
	var name = document.theForm.username.value;
	var pwd = document.theForm.pwd.value;

	if(name == "")
	{
		alert("Non hai inserito la username");
		return false;
	}

	if(pwd == "")
	{
		alert("Non hai inserito la password");
		return false;
	}
	
	document.theForm.submit();
}
