
function Validate(oForm){
	requiredRadioElements = new Array( "rdo_profession",
		"rdo_easyAccess",
		"rdo_clearlyPresented",
		"rdo_informative",
		"rdo_openAndTransparent",
		"rdo_detailed",
		"rdo_comprehensive",
		"rdo_ManagementSystem",
		"rdo_safetyPerformance",
		"rdo_legacy",
		"rdo_development",
		"rdo_performance",
		"rdo_occupational",
		"rdo_healthSafety",
		"rdo_stewardship",
		"rdo_committed",
		"rdo_legally",
		"rdo_problems",
		"rdo_Does",
		"rdo_technology",
		"rdo_worker",
		"rdo_areAware",
		"rdo_HaveReadIt");

	//check for other check box
	var ischecked = 0;

	for(var i = 0; i < oForm.elements.length; i++) {
		if(oForm.elements[i].type == "radio") {

			//check the name of the element with the required elements list
			for(var j = 0; j < requiredRadioElements.length; j++) {
				if(oForm.elements[i].name == requiredRadioElements[j]) {
					if(oForm.elements[i].checked) {
						ischecked++;
					}
				}
			} //for(var j = 0; j < requiredTadioElements.length; j++)
			
		} //if(oForm.elements[i].type == "radio")
	}
					
	//if(ischecked < 22){
	//	alert('Please supply an answer to each of the questions.');
	//	return false;		
	//}
	
	if(ischecked < 1){
		//no question answered -> check textboxes for at least 1 answer
		if(!(oForm.txa_included.value.length>0||oForm.txa_Comments.value.length>0)){
	
		alert('Please supply an answer to at least one of the questions.');
		return false;				
		
		}

	}	
					
	
				
	//Validate that the Why text is no longer than 5000 characters
	if (oForm.txa_included.value.length > 5000){
		alert("Your answer to question #4 is too long. Please shorten it.");
		oForm.txa_included.focus();
		return false;
	}
	
	//Validate that the Comments text is no longer than 5000 characters
	if (oForm.txa_Comments.value.length > 5000){
		alert("Your answer to question #7 is too long. Please shorten it.");
		oForm.txa_Comments.focus();
		return false;
	}
		
		//everything is good to go!!
	return true;	
}



