Changed datepicker pg plugin. Some modifications to the js code that calls the datepicker.