// JavaScript Document
function showSkizze(dID,onoff){
  if (onoff == "1")
    { document.getElementById(dID).className="skizzeON"; } 
	else 
	{ document.getElementById(dID).className="skizzeOFF"; }
} 

function changeClass(dID,onoff){
	if (onoff == true) {
		document.getElementById(dID).className="e1h";	
	}
	else {
		document.getElementById(dID).className="e1";	
	}
}

function changeClass2(dID,onoff){
	if (onoff == true) {
		document.getElementById(dID).className="e2h";	
	}
	else {
		document.getElementById(dID).className="e2";	
	}
}

function changeVisibility(dID,go){
  if (dID == "1")
    { document.getElementById("1-1").style.display = ""; 
	  document.getElementById("1-2").style.display = "";
	  document.getElementById("1-3").style.display = ""; 
	  } else 
	{ document.getElementById("1-1").style.display = "none";
	  document.getElementById("1-2").style.display = "none";
	  document.getElementById("1-3").style.display = "none";
	  document.getElementById("1-1-1").style.display = "none";
      }
  
  if (dID == "2")
    { document.getElementById("2-1").style.display = ""; 
	  document.getElementById("2-2").style.display = "";
	  document.getElementById("2-3").style.display = ""; 
	  document.getElementById("2-4").style.display = ""; 
	  } else 
	{ document.getElementById("2-1").style.display = "none";
	  document.getElementById("2-2").style.display = "none";
	  document.getElementById("2-3").style.display = "none";
	  document.getElementById("2-4").style.display = "none";  
	  }
  if (dID == "3")
    { if (go == 1) {window.location.href = "_power-interface.shtml";} } 
  if (dID == "4")
    { if (go == 1) {window.location.href = "_universalblinkgeber.shtml";} } 
  if (dID == "5")
    { if (go == 1) {window.location.href = "_buzzer.shtml";} } 
  if (dID == "6")
    { if (go == 1) {window.location.href = "_diodenkombinationen.shtml";} } 
  if (dID == "7")
    { if (go == 1) {window.location.href = "_schrittschaltrelais.shtml";} } 
  if (dID == "8")
    { if (go == 1) {window.location.href = "_strommessrelais.shtml";} } 
  if (dID == "9")
    { if (go == 1) {window.location.href = "_springlicht.shtml";} } 
  if (dID == "10")
    { if (go == 1) {window.location.href = "_spannungswaechter.shtml";} } 
  if (dID == "11")
    { if (go == 1) {window.location.href = "_solid-state.shtml";} } 
  if (dID == "12")
    { if (go == 1) {window.location.href = "_tonfolgesteuerung.shtml";} } 
  if (dID == "13")
    { if (go == 1) {window.location.href = "_wisch-wasch-intervall.shtml";} } 
  if (dID == "14")
    { document.getElementById("14-1").style.display = ""; 
	  document.getElementById("14-2").style.display = "";
	  document.getElementById("14-3").style.display = ""; 
	  document.getElementById("14-4").style.display = ""; 
	  document.getElementById("14-5").style.display = ""; 
	  } else 
	{ document.getElementById("14-1").style.display = "none";
	  document.getElementById("14-2").style.display = "none";
	  document.getElementById("14-3").style.display = "none";
	  document.getElementById("14-4").style.display = "none";
	  document.getElementById("14-5").style.display = "none";
	  }

  if (dID == "15")
    { document.getElementById("15-1").style.display = ""; 
	  document.getElementById("15-2").style.display = "";
	  document.getElementById("15-3").style.display = ""; 
	  } else 
	{ document.getElementById("15-1").style.display = "none";
	  document.getElementById("15-2").style.display = "none";
	  document.getElementById("15-3").style.display = "none";
	  }
  if (dID == "16")
    { document.getElementById("16-1").style.display = ""; 
	  document.getElementById("16-2").style.display = "";
	  document.getElementById("16-3").style.display = ""; 
	  document.getElementById("16-4").style.display = ""; 
	  document.getElementById("16-5").style.display = ""; 	  
	  document.getElementById("16-6").style.display = ""; 
	  } else 
	{ document.getElementById("16-1").style.display = "none";
	  document.getElementById("16-2").style.display = "none";
	  document.getElementById("16-3").style.display = "none";
	  document.getElementById("16-4").style.display = "none";
	  document.getElementById("16-5").style.display = "none";
	  document.getElementById("16-6").style.display = "none"; 
	  }

}

function changeVisibility2(dID,go){
  if (dID == "1-1")
    { document.getElementById("1-1-1").style.display = ""; } else {document.getElementById("1-1-1").style.display = "none";	}
  if (dID == "1-2")
    { document.getElementById("1-2-1").style.display = ""; } else {document.getElementById("1-2-1").style.display = "none";	}
  if (dID == "1-3")
    { document.getElementById("1-3-1").style.display = ""; } else {document.getElementById("1-3-1").style.display = "none";	}
  if (dID == "2-1")
    { if (go == 1) {window.location.href = "_universalsteuerung_multifunktionsrelais.shtml";} } 
  if (dID == "2-2")
    { if (go == 1) {window.location.href = "leer.shtml";} } 
  if (dID == "2-3")
    { if (go == 1) {window.location.href = "leer.shtml";} } 
  if (dID == "2-4")
    { if (go == 1) {window.location.href = "_universalsteuerung_multifunktionsrelais_kundeneinsatz.shtml";} } 

  if (dID == "14-1")
    { if (go == 1) {window.location.href = "leer.shtml";} } 
  if (dID == "14-2")
    { if (go == 1) {window.location.href = "_relais_microrelais.shtml";} } 
  if (dID == "14-3")
    { if (go == 1) {window.location.href = "_relais_sonderausfuehrungen.shtml";} } 
  if (dID == "14-4")
    { if (go == 1) {window.location.href = "leer.shtml";} } 
  if (dID == "14-5")
    { if (go == 1) {window.location.href = "_relais_doppelrelais.shtml";} } 

  if (dID == "15-1")
    { if (go == 1) {window.location.href = "_anhaengermodule.shtml";} } 
  if (dID == "15-2")
    { if (go == 1) {window.location.href = "_blinkgeber.shtml";} } 
  if (dID == "15-3")
    { if (go == 1) {window.location.href = "leer.shtml";} } 

}
