Preheat the oven to 350 degrees F (175 degrees C). Melt butter in a skillet over medium heat. Saute onions in butter until tender. Stir in the baked beans and sliced frankfurters. Season with brown sugar, mustard and celery salt. Transfer to a 2 quart casserole dish. Bake for 40 minutes, stirring occasionally.