function date_validate(day,month,year)
{
	
		if(month.value=="02" || month.value=="04" || month.value=="06" || month.value=="09" || month.value=="11") {
			if(month.value=="02") {
				
				if(day.value=="31" || day.value=="30" || day.value=="29") {	
				
					var checkyear=year.value;
					if(checkyear%4==0) {
						day.value="29";
					} else {
						day.value="28";
					}
				}
			}//end if(month.value=="02") {
			else {
				if(day.value=="31") {
					day.value="30";	
				}
			}
		}//end if(month.value=="02" || month.value=="04" || month.value=="06" || month.value=="09" || month.value=="11") {
}


function checkForm()
{
	
	
	if(document.date_filter.end_year.value < document.date_filter.start_year.value) {
		alert("The Start Date cannot be larger than the End Date");
		return false;
	}
	else if((document.date_filter.end_month.value < document.date_filter.start_month.value) && (document.date_filter.end_year.value < document.date_filter.start_year.value)) {
		alert("The Start Date cannot be larger than the End Date");
		return false;
	}
	else if((document.date_filter.end_day.value < document.date_filter.start_day.value) && (document.date_filter.end_month.value < document.date_filter.start_month.value) && (document.date_filter.end_year.value < document.date_filter.start_year.value)) {
		alert("The Start Date cannot be larger than the End Date");
		return false;
	}
}