Date Function
// selects current date in the historical lookup tool
var currentDate = new Date();
var dd = currentDate.getDate();
var mm = currentDate.getMonth() + 1;
var yyyy = currentDate.getFullYear();
if (dd < 10) {
dd = '0' + dd
}
if (mm < 10) {
mm = '0' + mm
}
$('.control_MonthListBox option').filter(function() {
return ($(this).val() == mm);
}).prop('selected', true);
$('.control_DayListBox option').filter(function() {
return ($(this).val() == dd);
}).prop('selected', true);
$('.control_YearListBox option').filter(function() {
return ($(this).val() == yyyy);
}).prop('selected', true);