// Anpassungen aus Version 1.5 übernommen

function zoom_out() {
      document.getElementById('bild_klein').style.display = "none";
      document.getElementById('bild_gross').style.display = "block";
}

function zoom_in() {
      document.getElementById('bild_klein').style.display = "inline";
      document.getElementById('bild_gross').style.display = "none";
}

function changeList(id) {
  if (document.getElementById(id).style.display!="none") var aktion="einklappen";
  
  for (i=1;;i++) {
     if (document.getElementById("zielgruppe"+i)) {      
	      document.getElementById("zielgruppe"+i).style.display="none";	
        document.getElementById("zielgruppe"+i).parentNode.className="ausklappen";	
        }
     else break;
	}
    
	if (aktion=="einklappen")
  {
  document.getElementById(id).style.display="none";	
  document.getElementById(id).parentNode.className="ausklappen";
  } else {
  document.getElementById(id).style.display="block";	
  document.getElementById(id).parentNode.className="ausgeklappt";
  }
}



startList = function() {
   for (i=1;;i++) {
     if (document.getElementById("zielgruppe"+i)) {      
	      document.getElementById("zielgruppe"+i).style.display="none";	
        document.getElementById("zielgruppe"+i).parentNode.className="ausklappen";	
        }
     else break;
	}
}

function go(x)
{
window.location.href=x;
}


function hzb_test()
{
  var hzb_wert = document.formular.hzb.value;
  if (hzb_wert == "andere" || hzb_wert == "Ausländischer Schulabschluss")
    {    
    document.formular.hzb_detail.style.backgroundColor = "#FFFFFF";
    document.formular.hzb_ort.style.backgroundColor = "#FFFFFF";
    document.formular.hzb_detail.disabled = false;
    //document.formular.hzb_ort.disabled = false;
    }
  else {
    document.formular.hzb_detail.style.backgroundColor = "#DCDCD3";
    /*document.formular.hzb_ort.style.backgroundColor = "#DCDCD3";*/
    document.formular.hzb_detail.disabled = true;
    //document.formular.hzb_ort.disabled = true;
    }
}

function imma_aus()
{
  document.formular.hochschule.style.backgroundColor = "#DCDCD3";
  document.formular.uni_detail.style.backgroundColor = "#DCDCD3";
  document.formular.uni_fach.style.backgroundColor = "#DCDCD3";
  document.formular.fachwechsel.style.backgroundColor = "#DCDCD3";
  document.formular.abgeschlossen.style.backgroundColor = "#DCDCD3";
  document.formular.hochschule.disabled = true;
  document.formular.uni_detail.disabled = true;
  document.formular.uni_fach.disabled = true;
  document.formular.fachwechsel.disabled = true;
  document.formular.abgeschlossen.disabled = true;
}

function imma_ein()
{    
  var uni_wert = document.formular.hochschule.value;
  if (uni_wert == "LMU") 
      {
     document.formular.uni_detail.disabled = true;
     document.formular.uni_detail.style.backgroundColor = "#DCDCD3";
     } 
    else {
    document.formular.uni_detail.disabled = false;
    document.formular.uni_detail.style.backgroundColor = "#FFFFFF"; 
     }



  document.formular.hochschule.style.backgroundColor = "#FFFFFF";
  //document.formular.uni_detail.style.backgroundColor = "#FFFFFF";
  document.formular.uni_fach.style.backgroundColor = "#FFFFFF";
  document.formular.fachwechsel.style.backgroundColor = "#FFFFFF";
  document.formular.abgeschlossen.style.backgroundColor = "#FFFFFF"; 
  document.formular.hochschule.disabled = false;
  //document.formular.uni_detail.disabled = false;
  document.formular.uni_fach.disabled = false;
  document.formular.fachwechsel.disabled = false;
  document.formular.abgeschlossen.disabled = false; 
}

function hochschule_detail() {
  var uni_wert = document.formular.hochschule.value;
  if (uni_wert == "LMU")  {
     document.formular.uni_detail.disabled = true;
     document.formular.uni_detail.style.backgroundColor = "#DCDCD3";
     }  else {
    document.formular.uni_detail.disabled = false;
    document.formular.uni_detail.style.backgroundColor = "#FFFFFF"; }
}


window.onload=function()
{
  startList();
  hzb_test();
  imma_aus();
}

