Peel potatoes and slice into 1/8 inch slices. Layer a buttered casserole dish with 1/4 of potatoes spread evenly in dish. Sprinkle potatoes with 1/4 of onions. Combine in a small bowl salt, garlic salt, sugar, paprika, and flour. Blend well. Sprinkle 2 1/2 teaspoons of this mixture evenly over first layer. Dot with 1 tbs butter cut into pieces. Continue the procedure for 3 more layers. Pour beer over casserole and top with grated cheese. Bake at 350 oven for 1 hour.