function islte(){
	var str = document.frm.birthday.value;
	
	dd1=str.substring(3,5);
	mm1=str.substring(0,2);
	yy1=str.substring(6);
	
	var today = new Date();
	dd2=today.getDate();
	mm2=today.getMonth()+1;
	yy=today.getFullYear();
	yy2=yy+1900;
	
	/*if(dd1<10)
		dd1="0"+dd1;
	if(mm1<10)
		mm1="0"+mm1;*/
	if(dd2<10)
		dd2="0"+dd2;
	if(mm2<10)
		mm2="0"+mm2;
	
	if(yy1==yy) {
		if((dd1>dd2 && mm1==mm2) || (mm1>mm2)){
			alert("Date of incident should be less than or equal to the current date.");
			document.frm.birthday.focus();
			return false;
		}
	}
	
	return true;
}

function validate() {
	var retVal = false;
	while(true) {
		if(document.frm.birthday.value!=""){
			if(!islte()) 
				break;
		}
		
	retVal = true;
		break;
	}
	return retVal;
}