

function dtValidate(){

var Day = document.getElementById('birthDay');
var Month = document.getElementById('birthMonth');
var Year = document.getElementById('birthYear');

if(Month.value== 2 ){
	if ((Year.value % 4 == 0) && ( (!(Year.value % 100 == 0)) || (Year.value % 400 == 0))) {
	if(Day.value>29){
		Day.value = 29;		
	}
	}
	else
	{
	if(Day.value>28){ 
		Day.value= 28;
		}
	}
}
else if(Month.value== 4 || Month.value== 6 || Month.value== 9 || Month.value== 11){
	if(Day.value>30)
		Day.value = 30;
}
	
else if(Day.value>31)
	Day.value = 31;
}














