﻿
function checkExceededAllocation(drp, txt) {
    var selectedAmnt = parseFloat($('#' + drp + " option:selected").attr('amount'));
    var enteredAmnt = parseFloat($('#' + txt).val());
    if (enteredAmnt > selectedAmnt) {
        alert('Entered amount is more than the selected payment !');
        return false;
    }
    return true;

}

$(document).ready(function () {

    $('.row-hover-sensitive').hover(

            function () {
                $(this).css('background-color', '#e6e6e6');
            },
                    function () {
                        $(this).css('background-color', '');
                    });


    $(function () {
        $(".txtDate").datepicker();
    });


});
