function hideElement(id){
  if(document.getElementById(id).style.display != "none"){
    document.getElementById(id).style.display="none";
  }
}

function showElement(id){
  if(document.getElementById(id).style.display != "block"){
    document.getElementById(id).style.display="block";
  }
}

function showElement2(id){
  if(document.getElementById(id).style.display != "inline"){
    document.getElementById(id).style.display="inline";
  }
}

function writeInto(id,value,key)
{
  document.getElementById("DropDownA-" + id).innerHTML = value;
  document.getElementById("DropDownInputName-" + id).value = value;
  document.getElementById("DropDownInput-" + id).value = key;
}

function writeInto2(id,value)
{
  document.getElementById(id).value = value;
}

function hideOtherDD(dontHide)
{
  var ddboxes = new Array("obec","kategorie","zpusob","bezeskodnyprubeh","platba","platbazpusob");
  
  for(x = 0;x < ddboxes.length;x++)
  {
    if(ddboxes[x] != dontHide)
    {
      //alert(ddboxes[x] + " != " + dontHide);
      showElement("DropDownBox-" + ddboxes[x]);
      hideElement("DropDownBoxOn-" + ddboxes[x]);
      hideElement("DropDown-" + ddboxes[x]);
    }
  }
}

function GetOnLinePrice(obj_id, pojisteni)
{
  var exp_pojisteni = pojisteni.split("|");
  document.getElementById(obj_id).innerHTML = exp_pojisteni[3];
}
