function addEmphasys(element) {
  var temp;
  arr = new Array("search_ferien", "search_dauer", "search_kauf");
  for (i = 0; i < arr.length; i++) {
    if (arr[i] != element) {
      temp = document.getElementById(arr[i]);
      if (temp != null) {
        temp.style.backgroundColor='#ffffff';
      } else {
        return false;
      }
    }
  }
  temp = document.getElementById(element);
  if (temp != null && search_engine_emphasys) {
    temp.style.backgroundColor="#ebebeb";
  }
  return true;
}
function deleteEmphasys(element) {
  var temp = document.getElementById(element);
  if (temp != null) {
    temp.style.backgroundColor = "#ffffff";
    temp.onClick = null;
    search_engine_emphasys = false;
  }
  return true;
}

function hideSearchPanel(type) {
  var temp = document.getElementById(type);
  if (temp != null) {
    temp.innerHTML = "";
    temp.style.display = "none";
    temp.style.visibility = "hidden";
  }
  return true;
}
function hideSearchSearching() {
  array = new Array("ferien", "dauer", "kauf");
  for (i = 0; i < array.length; i++) {
    var temp = document.getElementById("search_" + array[i] + "_searching");
    if (temp != null) {
      temp.style.display = "none";
    }
  }
  return true;
}
function showSearchSearching(type) {
  div = document.getElementById("search_" + type + "_searching")
  if (div != null) {
    div.style.display = "block";
  }
  return true;
}

function selectIns(id) {
  document.body.style.cursor ="pointer";
  var temp = document.getElementById('ins' + id);
  temp.style.backgroundColor="#ebebeb";
  return true;
}
function deselectIns(id) {
  document.body.style.cursor ="default";
  var temp = document.getElementById("ins" + id);
  temp.style.backgroundColor="#ffffff";
  return true;
}
