function SwitchDiv(idname) {
  var showDiv = document.getElementById("divs_"+idname);
  //HiddeDiv("login_box");
  if(showDiv != null) {
    if (showDiv.style.display == "none") {
    showDiv.style.display = "inline"}
    else if (showDiv.style.display == "inline") {
    showDiv.style.display = "none"}
  }
}

function SwitchImgDiv(imgname,swname) {
  var showImgDiv = document.getElementById(imgname);
  var showSwiDiv = document.getElementById(swname);
  //HiddeDiv("login_box");
  if(showImgDiv != null) {
    if (showImgDiv.style.display == "none") {
    showImgDiv.style.display = "inline";
	if (showSwiDiv != null) {showSwiDiv.innerHTML = "KI"}}
    else if (showImgDiv.style.display == "inline") {
    showImgDiv.style.display = "none";
    if (showSwiDiv != null) {showSwiDiv.innerHTML = "BE"}}
    
  }

}

// =======================================================================================================
// switch ikon images (NOTE: form name: myform!!)
function loadImage(path,imgID,selID)
{
 	var w = document.getElementById(selID).selectedIndex;
	var selected = document.getElementById(selID).options[w].value;
	document.getElementById(imgID).src = path + selected;
}


function HiddeAllDivs() {
  for(i = 1; i <= tabCount; i++) {
    if(document.getElementById("prod_tab_div_"+i) != null) {
      document.getElementById("prod_tab_div_"+i).style.display = "none"
    }
  }
}

function HiddeDiv(tab) {
    if(document.getElementById(tab) != null) {
      document.getElementById(tab).style.display = "none"
    }
    
}

function ShowDiv(tab) {
    if(document.getElementById(tab) != null) {
      document.getElementById(tab).style.display = "inline"
    }
}

function BoldDiv(tab, event) {
    if(document.getElementById(tab) != null) {
      document.getElementById(tab).style.fontWeight = event
    }
}

