    function isDate(inDate)
    {
        if (inDate.length == 0)
        {
            return true;
        }
            
        var validformat = /^(0[1-9]|1[012])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/

        if (!validformat.test(inDate))
        {
            return false;
        }
        else
        {
            var month = inDate.split("/")[0]
            var day = inDate.split("/")[1]
            var year = inDate.split("/")[2]
            var testDate = new Date(year, month - 1, day)
            
            if ((testDate.getMonth() + 1 != month) || (testDate.getDate() != day) || (testDate.getFullYear() != year))
            {
                return false;
            }
        }
        
        return true;
    }
    
    function isMilitaryTime(inTime)
    {
        if (inTime.length == 0)
        {
            return true;
        }
            
        return /^([01]?[0-9]|[2][0-3])(:[0-5][0-9])?$/.test(inTime)        
    }