function get_radio_value() {
	for (var i=0; i < document.feedback.ResponseRequired.length; i++) {
    if (document.feedback.ResponseRequired[i].checked) {
		  var rad_val = document.feedback.ResponseRequired[i].value;
		  }
	   }
	   return rad_val;
	}
function processForm() {
		var contacts = new Array();
		contacts[0] = "";
		contacts[1] = "housing@gov.mb.ca";
		contacts[2] = "dpeia@gov.mb.ca";
		contacts[3] = "dpeia@gov.mb.ca";
		contacts[4] = "dpeia@gov.mb.ca";
		contacts[5] = "cdcinfo@gov.mb.ca";
		contacts[6] = "cfsd@gov.mb.ca";
		contacts[7] = "fshwebunit@gov.mb.ca";  
	document.feedback.recipient.value = contacts[document.feedback.topic.selectedIndex];
	if (document.feedback.Comment.value.length == 0) {
		var r=confirm("Do you really want to leave the comment blank?");
		if (r==true) {
	 //         return true;
		}
		else {
			  return false;
		}
	}
	if (document.feedback.topic.selectedIndex==0) {
		alert ("You have not selected a topic.\nIf you are unsure, you can choose \"Family Services and Housing General\"");
		return false;
	}
	var email=document.feedback.Contact.value;
	var radio_value = get_radio_value()
	if (radio_value == "Yes") {
		 var contactContent=document.feedback.Contact.value;
		 if (contactContent!='') {
		} else {
			alert("You have requested a reply but your contact informatino seems to be missing");
			return false;
		}
	}
}

