I would look to set up a double nested for each loop using jquery;
(assuming your inputs are named txtDate1,2,3,4 etc.
$('input[id^="txtDate"][type="text"]').each(
function (index, element) {
$('input[id^="txtDate"][type="text"]').each(
function(indexInner, elementInner) {
if (index != indexInner)
{
if ( $(element).val() == $(elementInner).val())
alert("2 boxes have the same value:" +element.id + ":" + elementInner.id);
}
}
);
}
);
If a match was found I would also return false out of the comparison check to stop checking any further.