added md5 function for password

some minor changes in admin panel files.
moved some inline java functions to functions.js file.
now password will be saves in hash value using md5.
mictodoft corrected to microsoft.