// JavaScript Document
// This function provides the client side validation for the patient referral
// form on the website
<!--
function submit_form(value) {
		if(value.doctor_name.value == "") {
			alert("Please enter your name.");
			value.doctor_name.focus();
			value.doctor_name.select();
			return false;
		}
			if(value.patient_name.value == "" ) {
			alert("Please enter your patients name.");
			value.patient_name.focus();
			value.patient_name.select();
			return false;
		}
		if(value.doctor_address.value == "") {
			alert("Please enter your address.");
			value.doctor_address.focus();
			value.doctor_address.select();
			return false;
		}
			if(value.patient_address.value == "" ) {
			alert("Please enter your patients address.");
			value.patient_address.focus();
			value.patient_address.select();
			return false;
		}
			if(value.patient_telephone.value == "" ) {
			alert("Please enter your patients telephone number.");
			value.patient_telephone.focus();
			value.patient_telephone.select();
			return false;
		}
			if(value.doctor_telephone.value == "") {
			alert("Please enter your telephone number.");
			value.doctor_telephone.focus();
			value.doctor_telephone.select();
			return false;
		}
			if(value.patient_dob.value == "" ) {
			alert("Please enter your patients date of birth.");
			value.patient_dob.focus();
			value.patient_dob.select();
			return false;
		}

		else {
			alert("Thankyou for your referral, we will get back to you as soon as possible");
			return true;
		}
	}
//-->

