function loginForm( theForm ) {
	if( theForm.LoginUtente.value == "" ){
		alert( "Inserire lo Username" );
		theForm.LoginUtente.focus();
		return false;
	}
	var tmpPwd = document.getElementById( 'pwd' );
	if( tmpPwd.value == "" ){
		alert( "Inserire la Password" );
		tmpPwd.focus();
		return false;
	}

	//cripto la pwd tutta minuscola in quanto il controllo NON deve essere case-sensitive
	var newPwd = hex_md5( tmpPwd.value.toLowerCase() );
	theForm.PasswordUtente.value = newPwd;
}
