<!--
function setOtherDisabled(fieldName, disabled) {
  var otherElement = document.forms["webImport"][fieldName + "_other"];
  if(otherElement != null) otherElement.disabled = disabled;
}

function setOtherDisabled2(fieldName, disabled) {
  var other_input = document.forms["webImport"][fieldName + "_other"]
  if (!other_input) return
  other_input.disabled = disabled
  other_input.style.display = (disabled) ? 'none' : 'block'
  if(disabled)
    other_input.value = ''
  else
    other_input.focus()
}

function setOtherDisabled3(form, name) {
  var select_element = form.elements[name]
  if (!select_element) return
  var option_element = select_element[select_element.selectedIndex]
  if (!option_element) return
  setOtherDisabled2(name, !(option_element.getAttribute("optType") == 'other'))
}

function setOtherValue(fieldName, value) {
  var other_input = document.forms["webImport"][fieldName + "_other"]
  if (!other_input) return
  other_input.disabled = false
  other_input.style.display = 'block'
  other_input.value = value
}

function showHiddenAnswer(hidden_id,isShow) {
    var hidden_id_div = document.getElementById("hidden_"+hidden_id)
    if (!hidden_id_div) return
    hidden_id_div.style.display=(isShow) ? 'block' : 'none'
}

//function showHiddenAnswer(fieldName,hidden_id) {
//  var hidden_id_div = document.forms["webImport"]["hiden_"+hidden_id]
//  if (!hidden_id_div) return
//  alert("Hidden Found")
//  var input_elment = document.forms["webImport"][fieldName]
//  if (!input_elment) return
//  alert("Input Found")
//  hidden_id_div.style.display=(input_elment.checked)? 'block':'none';
//}
//-->