Subject: Fixed bug in edit account and modified date format of period field in all reports.

Description:
1. While search by account code, the closing balances was coming wrong
   because we were sending account code to calculate closing balance instead
   of account name.

2. date formate of period is modified to proper day-month-year(eg. 1-Apr-2013)
   in all reports.

3.Fixed a small bug in preferences page. while setting account code preferences
  event was written on on-check method of checkbox. It is moved to onClick method
  of next button.