function initSelectWithValue(selectObj,oldValue){
  for(i=0;i<selectObj.length;i++){
    if(selectObj.options[i].value == oldValue){
      selectObj.options[i].selected = true;
      break;
    }
  }
};


function initRadioWithValue(radioObj,oldValue){
  for(i=0;i<radioObj.length;i++){
    if(radioObj[i].value == oldValue){
      radioObj[i].checked = true;
      break;
    }
  }
};