I want replace or move panel on window from west to north and from north to west using button? I exploded very much but I didnt find anything.

I have a center panel id="cntrPanel" and one panel too id="pnl" without region . I want to for pnl insert or placed west by button and north by button only one panel.

How can ? do? thank you.