<!-- 
/// @brief    Zentrale Datei für JavaScript-Unterstüzung.
///
/// @author   IOS - Internet Office Solutions [SCM]
/// @date     $Date: 2008-11-01 00:06:36 +0100 (Sat, 01 Nov 2008) $
/// @version  Basissystem 2.0 (\$Revision: 201 $)
/// \htmlonly

function submitlink(action, funktion)
  {
  fadeout("mainarea", 40, 40)
  if (action != undefined && action != "" ) document.submitform.action = action;
  if (funktion != undefined && document.submitform.funktion != undefined) document.submitform.funktion.value = funktion;
  document.submitform.submit();
  }

function submitmainform(action, funktion)
  {
  fadeout("mainarea", 40, 40)
  if (action != undefined && action != "" ) document.mainform.action = action;
  if (funktion != undefined && document.mainform.funktion != undefined) document.mainform.funktion.value = funktion;
  document.mainform.submit();
  }

function togglevisible(id) 
  {
  if (document.getElementById(id).style.display == "block")
    {
    document.getElementById(id).style.display = "none";
    document.getElementById("icon"+id).src = document.getElementById("icon"+id).src.replace(/minus/g, "plus");
    document.getElementById("icon"+id).title = document.getElementById("icon"+id).title.replace(/einklappen/g, "ausklappen");
    document.getElementById("icon"+id).title = document.getElementById("icon"+id).title.replace(/Fold/g, "Expand");
    }
  else
    {
    document.getElementById(id).style.display = "block";
    document.getElementById("icon"+id).src = document.getElementById("icon"+id).src.replace(/plus/g, "minus");
    document.getElementById("icon"+id).title = document.getElementById("icon"+id).title.replace(/ausklappen/g, "einklappen");
    document.getElementById("icon"+id).title = document.getElementById("icon"+id).title.replace(/Expand/g, "Fold");
    }
  }

function fadeout(element, opacityvon, opacitybis)
  {
  if (document.getElementById(element) != null) 
  {
    if (navigator.appName == "Microsoft Internet Explorer")
      {
      document.getElementById(element).style.filter = "Alpha(opacity=" + (100 - opacityvon) + ")";
      }
    else
      {
      document.getElementById(element).style.opacity = 1.0 - opacityvon / 100;
      }
    
    if (opacityvon < opacitybis)
      {
      setTimeout("fadeout('" + element + "', " + (opacityvon+10) + ", " + (opacitybis) + ");", 10);
      }
    else if (opacityvon == 100)
      {		
      document.getElementById(element).style.display = "none";
      }
    } 
  } 

function setstatus(element, status)
  {
  if (document.getElementsByName(element) != null) 
    {
    if (status == true)
      {
      document.getElementsByName(element)[0].disabled = true
      document.getElementsByName(element)[0].style.backgroundColor = '#CCCCCC'
      }
    else if (status == false)
      {
      document.getElementsByName(element)[0].disabled = false
      document.getElementsByName(element)[0].style.backgroundColor = 'white'
      }
    }
  }

function openWindow(theURL, winName, features) 
  {
  newwin = window.open(theURL, winName, features);
  newwin.focus();
  }

function openWindowCenter(theURL, winName, width, height, features) 
  {
  w = (screen.width - width) / 2;
  if (w < 0) {w = 10;}
  h = (screen.height - height) / 2;
  if (h < 0) {h = 10;}
  features = "width=" + width + ",height=" + height + ",top=" + h + ",left=" + w + "," + features;
  newwin = window.open(theURL, winName, features);
  newwin.focus();
  }

//-->




