function checkFields(obj) { 
  var myarray = new Array();
  myarray = obj;
  var clicked = 0;
  var totalradios = myarray.length;

  var clickedButton = new Array();
  var selectedyes = false;
  emptyfields = "";
  for (var j = 0; j < myarray.length; j++) {
 var radio = document.aspnetForm.elements[myarray[j]];
 for (var i = 0; i < radio.length; i++) {
 if (radio[i].checked) {
 if (radio[i].value == "yes") {
 selectedyes = true
 }
 clickedButton[clicked] = radio[i].value;
 clicked += 1;
 break;
 }
 }
 }
 if (clickedButton.length == 0 || clicked % myarray.length != 0) {
 emptyfields += "\n - YES or NO";
 }
 else if (selectedyes == true) {
 alert("You cannot file an online report with the selected options. Please call 9-1-1.");
 return false;
 }
 else {
 booSubmit = confirm("You will now be taken to the online reports.");
 if (booSubmit == true) {
 window.open('https://secure.coplogic.com/dors/app?service=external/StartReport&sp=104119500');
 }
 }


 if (emptyfields != "") {
 emptyfields = "Please Make a Selection:\n" +
 emptyfields + "\n\nPlease fill in all required fields";
 alert(emptyfields);
 return false;
 }
 else return true;
}


function makeObj(myArray) {
 obj = {};
 for (var i in myArray) obj[i] = myArray[i];
 return obj;
} 