This script contains two functions (Leap Year Capable): First will check to validate a date value passed as a parameters. Second will check to validate two dates entered and compare/check first occurs before the second. Functions will return a blank string if the Date(s) is/are valid. They will retun a string containing an error message if Date(s) is/are NOT valid. You could pass the field name as parameter to generate a custom Error message for the field you are checking or pass a blank string as a field name to generate a generic error message.