function DoCustomValidation() {
	
		var frm = document.forms["estimate_form"];
	
		var radio_size;
		var check_type;
	
		radio_size = false;
		check_type = false;
	
		for (counter = 0; counter < frm.Project_Size.length; counter++)
		{
			if (frm.Project_Size[counter].checked) radio_size = true;
		}
		
		for (counter = 0; counter < frm.Project_Type.length; counter++)
		{
			if (frm.Project_Type[counter].checked) check_type = true;
		}
		
		if (!radio_size) {
			alert ("Please select the size of your project.");
			return false;
		}
		
		if (!check_type) {
			alert ("Please select at least one of the project types.");
			return false;
		}
	
		return true;
	
	}

var orderValidator = new Validator("estimate_form");

orderValidator.addValidation("First_Name","req","Please enter your first name.");
orderValidator.addValidation("Last_Name","req","Please enter your last name.");

orderValidator.addValidation("Telephone","req","Please enter your phone number.");

orderValidator.setAddnlValidationFunction("DoCustomValidation");
