Added a radio button to choose which quarter the report has be generated
Fixed some date related bugs.
Generalized the code.