﻿        $(document).ready(function() { 
                $('.pUpDate, .dOffDate').datepicker({ 
                           
        
        beforeShow: customRange,
		dateFormat: 'dd-mm-yy',
        showOn: 'both',
        buttonImage: 'images/cal.gif',
        buttonImageOnly: true,
        buttonText: 'Show Date Picker',
		showAnim: 'blind'
						
						
                }); 
        }); 
        function customRange(a) { 
                var b = new Date(); 
                var c = new Date(b.getFullYear(), b.getMonth(), b.getDate()); 
                if (a.id == 'dateto') { 
                        if ($('.pUpDate').datepicker('getDate') != null) { 
                                c = $('.pUpDate').datepicker('getDate'); 
                        } 
                } 
                return { 
                        minDate: c 
                } 
        } 

