$(document).ready(function() {
    $('.calendar-event').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 250
    });

    //for events start selection drop-down, populate end date/time
    $('#EventStartMonth').change(function() {
        $('#EventEndMonth').val($(this).val());
    });
    $('#EventStartDay').change(function() {
        $('#EventEndDay').val($(this).val());
    });
    $('#EventStartYear').change(function() {
        $('#EventEndYear').val($(this).val());
    });
    $('#EventStartHour').change(function() {
        $('#EventEndHour').val($(this).val());
    });
    $('#EventStartMin').change(function() {
        $('#EventEndMin').val($(this).val());
    });
    $('#EventStartMeridian').change(function() {
        $('#EventEndMeridian').val($(this).val());
    })
    $( ".datepicker" ).datepicker({dateFormat: "yy-mm-dd",minDate:'+1'});

    $('#AppointmentLocationId').change(function() {
        $('#AppointmentLocation').val($('#AppointmentLocationId option:selected').text());
    })

})

function changeLabel(value,input) {
    if($(input).val() == value) $(input).val('');
}
