Date before the current date should not be selected
<p>I am trying to show a popup message when any date before current day is clicked in the calendar? This is the function that has the date the user has clicked. setCalendarControlDate(year, month, day) has the date what user has selected. How can i compare the dates and show the error. </p>

<pre><code>function setCalendarControlDate(year, month, day) {

calendarControl.setDate(year, month, day);
var arguments = "changeDataGrid;day=" + day;
arguments += ";month=" + month;
arguments += ";year=" + year;
//  arguments += ";rowId=" + rowId;
arguments += ";" + rowId;
arguments += ";";

document.getElementById(targetControlId.id).value = arguments;
document.forms[0].submit();
</code></pre>

<p>}</p>
