function callSelectChange(name, value) {
  brain.document.location.replace("action.php?action=grbc&id="+ value);
}

function setSelects(name,options,noReset)  {
    SelectObj = document.getElementsByName(name)[0];
    
    if(!noReset)
      SelectObj.length = 1;
      
    for(i=0;i<options.length;i++) {
      newEntry = document.createElement("option");
      newEntry.text = options[i]["titel"];
      newEntry.value = options[i]["id"];
      SelectObj.add(newEntry,SelectObj.length);
    }
    
    if(SelectObj.length == 2)
      SelectObj.selectedIndex = 1;
}
