function displayCriteria(){
  var selected= "";
/* If there is only have one study then the length of rb is undefined*/
  if (document.selectdata.num_studies.value != 1){
      for (q=0;q <= document.selectdata.study_desc_rb.length;q++)  
      {
        if (document.selectdata.study_desc_rb[q].checked)
        { 
          var criteria= document.selectdata.base.value + document.selectdata.study_desc_rb[q].value;
          location.href = criteria
        }
      }
    }
    else
    {
      var criteria= document.selectdata.base.value + document.selectdata.study_desc_rb.value;
      location.href = criteria
    }
  }
 
function toggleRadio(thisField,thisValue) {
  radioSet = eval("document.selectdata."+thisField)
  /* If there is only have one study then the length of rb is undefined*/
  if (document.selectdata.num_studies.value != 1){
      for (i=0;i<radioSet.length;i++) {
       	if (radioSet[i].value == thisValue)
        		radioSet[i].checked = true
      }
   }
   else {
      radioSet.checked = true    
  }
}
