// function to select the first found radio button or whatever within the DOM element el
function ecos_clickselector(el) {
  for (var i=0; i<el.childNodes.length; i++) {
    if (el.childNodes[i].type == "radio" && el.childNodes[i].enabled) {
      el.childNodes[i].checked = true;
      ecos_survey_evaluate();
      return true;
    } else if (el.childNodes[i].type == "checkbox" && el.childNodes[i].enabled) {
      //el.childNodes[i].checked = !el.childNodes[i].checked;
      ecos_survey_evaluate();
      return true;
    }
  };
  return true;
}


function ecos_table_altrows(el) {
if (navigator.appName == 'Microsoft Internet Explorer') {
var a = el.childNodes[0];
if (a) {
  for(i=0;i<a.childNodes.length;i++) {
    option_row = a.childNodes[i];
    if(option_row.nodeName=='TR') {
      if ((i % 2) != 0)
        option_row.className = "altrow";
    }
  }
}
} else {
var a = el.childNodes[1];
if (a) {
  for(i=0;i<a.childNodes.length;i++) {
    option_row = a.childNodes[i];
    if(option_row.nodeName=='TR') {
      if ((i>0) && ((i % 2) == 0))
        option_row.className = "altrow";
    }
  }
}
};
};
