function page_onload()
{
	document.getElementById("txtUsername").focus();
}

function check_form(form)
{
	if (form.txtUsername.value == "")
	{
		alert("ATTENZIONE: Inserire il nome utente!");
		form.txtUsername.focus();
		return(false);
	}
	
	if (form.txtPassword.value == "")
	{
		alert("ATTENZIONE: Inserire la password!");
		form.txtPassword.focus();
		return(false);
	}

	return(true);
}