Functions.cs file for writing global function.

- added functions.cs file for writing global function used by any form.

- added panel1 in form1 to align form element to center.