
function validate_PatientQuestions(form)
{
	
	if (radio_button_checker(form)==false){
		form.Title[0].focus();
		return false
	}

	
	if (validate_required(form.FirstName.value, "Please enter your First Name")==false){
		form.FirstName.focus();
		return false
	}
	if (validate_required(form.LastName.value, "Please enter your Last Name")==false){
		form.LastName.focus();
		return false
	}
	
	if (validate_required(form.DOBDay.value, "Please enter your Day of Birth")==false){
		form.DOBDay.focus();
		return false
	}
	if (validate_required(form.DOBMonth.value, "Please enter your Month of Birth")==false){
		form.DOBMonth.focus();
		return false
	}
	if (validate_required(form.DOBYear.value, "Please enter your Year of Birth")==false){
		form.DOBYear.focus();
		return false
	}
	
	if (validate_required(form.HomeAreaCode.value, "Please enter the Area Code of your Home Phone Number")==false){
		form.HomeAreaCode.focus();
		return false
	}
	
	if (validate_required(form.HomePhone.value, "Please enter your Home Phone Number")==false){
		form.HomePhone.focus();
		return false
	}
	
	if (radio_button_checker2(form)==false){
		form.Title[0].focus();
		return false
	}

	if (validate_required(form.Address.value, "Please enter your Address")==false){
		form.Address.focus();
		return false
	}
	
	if (validate_required(form.CityorTown.value, "Please enter your City or Town")==false){
		form.CityorTown.focus();
		return false
	}
	
	
	if (validate_email(form.email.value, "Please enter a valid Email Address")==false){
		form.email.focus();
		return false
	}
	
	if(! form.Terms.checked)
	{
	 alert("Please tick the box at the bottom of the form to confirm that the information you have given is correct")
	 return false;
	}
	
function radio_button_checker(form)
{
	// set var radio_choice to false
	var radio_choice = false;

	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < form.Title.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		
			if (form.Title[counter].checked)
			radio_choice = true; 
	 }

		if (!radio_choice)
		{
		// If there were no selections made display an alert box 
		alert("Please select your Title"); 
		return (false);
		}
	    return (true);
}
	
function radio_button_checker2(form)
{
	// set var radio_choice to false
	var radio_choice = false;

	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < form.PreferedContact.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		
			if (form.PreferedContact[counter].checked)
			radio_choice = true; 
	 }

		if (!radio_choice)
		{
		// If there were no selections made display an alert box 
		alert("Please select your Preferred Method of Contact"); 
		return (false);
		}
	    return (true);
}	
	
}


