// Elemente ein- oder ausblenden

function toggleDisplay(id) {

 el = document.getElementById(id);
 
 var display = el.style.display ? '' : 'none';
 
 el.style.display = display; 
}


//GSK Kontakt:
function nwr(x,w,h,t,l,n){
          if (h == "") h = 100;
          if (w == "") w = 100;
          if (t == "") t = 10;
          if (l == "") l = 10;
          if (n == "") n = "login";
          var xx = "top="+t+",left="+l+",width="+w+ ",height="+h+", directories=0, status=1, scrollbars=1, resizable=1, toolbar=0,menubar=0";
          msgWindow=window.open(x,n,xx);
          msgWindow.focus();
       }

// ZMS JS

// ############################################################################

// ### open_function:

// ############################################################################

function open_function(url,width,height,options)

  {
    if ( height > screen.availHeight || width > screen.availWidth) {
      if ( options.indexOf( "scrollbars=") < 0) {
        if ( height > screen.availHeight)
          height = screen.availHeight;
        if ( width > screen.availWidth)
          width = screen.availWidth;
        options += ",scrollbars=yes";
      }
    }

    self.msgWindow = open(url, "Window", "width=" + width + ",height=" + height
      + ",screenX=" + (screen.width-width)/2
      + ",screenY=" + (screen.height-height)/2
      + ",dependent=yes"
      + ",left=" + (screen.width-width)/2
      + ",top=" + (screen.height-height)/2
      + options
      );
    if (self.msgWindow) {
      self.msgWindow.focus();
      if (self.msgWindow.opener == null) self.msgWindow.opener = self;
    }
  }

// ############################################################################

// ### get_url:

// ############################################################################

function get_url (url, k0 ,v0 ,k1 ,v1 ,k2 ,v2 ,k3 ,v3 ,k4 ,v4 ) 

{
  if (k0 && v0) url += "?" + k0 + "=" + escape(v0);
  if (k1 && v1) url += "&" + k1 + "=" + escape(v1);
  if (k2 && v2) url += "&" + k2 + "=" + escape(v2);
  if (k3 && v3) url += "&" + k3 + "=" + escape(v3);
  if (k4 && v4) url += "&" + k4 + "=" + escape(v4);
  return url;
}


