function verify(frmObj) {
	var error = "";

	if (trim(frmObj.hours.value)=="") {
		error+="* Missing CME hours\n";
	}else if (isNaN(trim(frmObj.hours.value))) {
		error+="* Invalid CME hours\n";
	}

	if (trim(frmObj.signature.value)=="") {
		error+="* Missing physician signature\n";
	}

	//gets the checked value of the radio button
	var num_checked=0;
	for (x=1; x<21; x++) {
		var radio_ctrl = document.getElementsByName( 'q'+x );
		for (var i=0; i < radio_ctrl.length; i++) {
			if (radio_ctrl[i].checked) {
		    	num_checked++;
		   }
	  	}
	}

	if (num_checked!=5)
	{
		error+="* Please indicate a response to every question above\n";
	}
	
	
	if(error != "") {
		alert("Please correct the following errors:\n" + error);
		return false;
	} else {
		frmObj.submit.disabled=true;
		return true;
	}
	
}

