

// ############################################################################
// ### calendarBtnClick:
// ############################################################################
function calendarBtnClick(fmName, elName, lang) {
  open_function("f_kalender?lang=ger&elName=" + elName + "&fmName=" + fmName,170,190,",resizable=no,scrollbars=no");
}

// ############################################################################
// ### open_frame:
// ############################################################################
function open_frame(title,url,params,width,height,options)
  {
    href = "f_frame";
    href += "?" + params;
    href += "&p_url=" + escape(url);
    href += "&p_title=" + escape(title);
    self.msgWindow = open(href,"msgWindow","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
      );
    self.msgWindow.focus();
    if (self.msgWindow.opener == null) self.msgWindow.opener = self;
  }

// ############################################################################
// ### open_function:
// ############################################################################
function open_function(url,width,height,options)
  {
    self.msgWindow = open(url,"Fenster","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
      );
    self.msgWindow.focus();
    if (self.msgWindow.opener == null) self.msgWindow.opener = self;
  }
