function validate(x) {
	if (x.daya.value!=''||x.montha.value!=''||x.yeara.value!='') {
		if (x.daya.value=='') {
			alert ('Please select a DAY for the START date...');
			x.daya.focus();
			return false;
		}
		if (x.montha.value=='') {
			alert ('Please select a MONTH for the START date...');
			x.montha.focus();
			return false;
		}
		if (x.yeara.value=='') {
			alert ('Please select a YEAR for the START date...');
			x.yeara.focus();
			return false;
		}
	}
	if (x.day2.value!=''||x.month2.value!=''||x.year2.value!='') {
		if (x.day2.value=='') {
			alert ('Please select a DAY for the END date...');
			x.day2.focus();
			return false;
		}
		if (x.month2.value=='') {
			alert ('Please select a MONTH for the END date...');
			x.month2.focus();
			return false;
		}
		if (x.year2.value=='') {
			alert ('Please select a YEAR for the END date...');
			x.year2.focus();
			return false;
		}
	}
	
	return true;
}