function validateForm(frm)
{
	//Patient's Name
	if(!frm.patient_name1.value){
		alert("Input the Patient's Name(First Name)");
		frm.patient_name1.focus();
		return false;
	}
	if(!frm.patient_name2.value){
		alert("Input the Patient's Name(Middle Intial)");
		frm.patient_name2.focus();
		return false;
	}
	if(!frm.patient_name3.value){
		alert("Input the Patient's Name(Last Name)");
		frm.patient_name3.focus();
		return false;
	}
	//Title
	if(frm.title2[0].selected.value == ""){
		alert("Select the Title");
		return false;
	}
	//Sex
	if(frm.sex[0].selected.value == ""){
		alert("Select the Sex");
		return false;
	}
	//Patient's Date of Birth 
	if(frm.bir_month[0].selected.value == ""){
		alert("Select Patient's Date of Birth(Month)");
		return false;
	}
	if(frm.bir_day[0].selected.value == ""){
		alert("Select Patient's Date of Birth(Day)");
		return false;
	}
	if(!frm.bir_year.value){
		alert("Input the Patient's Date of Birth(Year)");
		frm.bir_year.focus();
		return false;
	}
	//Address 
	if(!frm.address1.value){
		alert("Input the Adress");
		frm.address1.focus();
		return false;
	}
	frm.submit();
}



