function GetObjId(IdTxt)
{
	var Obj=null;
	if (document.all)
	{
		Obj = document.all(IdTxt);
	}
	else
	{
		Obj = document.getElementById(IdTxt);
	}
	return Obj;
}

function Controlla_invio() {
	if (event.keyCode==13) {
		e = GetObjId('flogin');
		e.submit();
	}
}

function Controlla_campi(IDForm){
	Obj = GetObjId(IDForm);
	if (Obj.txtUser.value==""){alert("Inserire lo Username"); return false;}
	if (Obj.txtPwd.value=="") {alert("Inserire la password"); return false;}
	return true;
}
