Need to check date
I have a form with a field, which accepts date in dd.mm.yyyy format. I have to perform a date check like, it should accept the date either if it is Today's date or date in past. It shouldn't accept dates in future and empty dates. Anybody can give a quick sample Java script code for this. Thanks in advance.