pdim function

Check for the Dimensions of the Panel