function AusgabeStatistik(path, ort) {
  return overlib('<img src='+path+'bt_tmp/images/statistik/temperatur_statistik_'+ort+'.jpg width=400 height=200 border=0>', WIDTH, 400, HEIGHT, 200, CAPTION,'Temperaturen und Regen',CAPICON,'', CAPCOLOR, '#ffffff', FGCOLOR, '#ffffff', BGCOLOR, '#8090B1', TEXTCOLOR, '#000000', DELAY, 200, HAUTO, VAUTO, NOCLOSE, NOBORDER, SHADOW, SHADOWOPACITY, 60, SHADOWX, 10, SHADOWY, 5);
}
function AusgabeGartenMitWetter(path, gebiet, images, bewertung, exposition, bestejz, regen, gehzeit, gestein, meereshoehe, min_wandhoehe, max_wandhoehe, kletterort, id_kl_xxx) {
   Text = ''
   Text = Text+'<table x:str border=0 cellpadding=0 cellspacing=0 width=300>';
   Text = Text+'<tr>';
   Text = Text+'<td class=info_title width=24%>Bewertung:</td>';
   Text = Text+'<td class=info_value width=24% align=right>'+bewertung+'</td>';
   Text = Text+'<td class=info_value width=4%></td>';
   Text = Text+'<td class=info_title width=24%>Exposition:</td>';
   Text = Text+'<td class=info_value width=24% align=right>'+exposition+'</td>';
   Text = Text+'</tr><tr>';
   Text = Text+'<td class=info_title>Jahreszeiten:</td>';
   Text = Text+'<td class=info_value align=right>'+bestejz+'</td>';
   Text = Text+'<td></td>';
   Text = Text+'<td class=info_title>Regentauglich:</td>';
   Text = Text+'<td class=info_value align=right>'+regen+'</td>';
   Text = Text+'</tr><tr>';
   Text = Text+'<td class=info_title>Gehzeit:</td>';
   Text = Text+'<td class=info_value align=right>'+gehzeit+'</td>';
   Text = Text+'<td></td>';
   Text = Text+'<td class=info_title>Gestein:</td>';
   Text = Text+'<td class=info_value align=right>'+gestein+'</td>';
   Text = Text+'</tr><tr>';
   Text = Text+'<td class=info_title>MH:</td>';
   Text = Text+'<td class=info_value align=right>'+meereshoehe+'m</td>';
   Text = Text+'<td></td>';
   Text = Text+'<td class=info_title>Min - max H.:</td>';
   Text = Text+'<td class=info_value align=right>'+min_wandhoehe+'-'+max_wandhoehe+'m</td>';
   Text = Text+'</tr></table>';

   Text = Text+'<table x:str border=0 cellpadding=0 cellspacing=0 width=300>';
   Text = Text+' <tr>';
   Text = Text+'  <td><img src='+path+'bt_tmp/images/statistik/wetter_dat_akt_t_'+kletterort+'_'+id_kl_xxx+'.png></td>';
   Text = Text+'  <td><img src='+path+'bt_tmp/images/statistik/wetter_dat_akt_m_'+kletterort+'_'+id_kl_xxx+'.png></td>';
   Text = Text+' </tr>';
   Text = Text+'</table>';



  return overlib(Text, CAPTION,gebiet,CAPICON,images, CAPCOLOR, '#ffffff', FGCOLOR, '#ffffff', BGCOLOR, '#8090b1', TEXTCOLOR, '#000000', WIDTH, 350, HEIGHT, 180, DELAY, 200, HAUTO, VAUTO, NOCLOSE, NOBORDER, SHADOW, SHADOWOPACITY, 60, SHADOWX, 10, SHADOWY, 5);
}


function AusgabeGarten(titel, bewertung, exposition, bestejz, regen, gehzeit, gestein, meereshoehe, min_wandhoehe, max_wandhoehe) {
      Text = '';
      Text = Text+'<table x:str border=0 cellpadding=0 cellspacing=0 width=300>';
      Text = Text+'<tr><td class=info_title width=24%>Bewertung: </td><td>'+bewertung+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>Exposition: </td><td>'+exposition+"</td></tr>";
      Text = Text+'<tr><td class=info_title width=24%>Beste Jahreszeit: </td><td>'+bestejz+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>Regentauglich: </td><td>'+regen+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>Gehzeit: </td><td>'+gehzeit+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>Gestein: </td><td>'+gestein+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>MH: </td><td>'+meereshoehe+'</td></tr>';
      Text = Text+'<tr><td class=info_title width=24%>Min - max H.: </td><td>'+min_wandhoehe+'-'+max_wandhoehe+'</td></tr>';
      Text = Text+'</table>';

   return overlib(Text, CAPTION,titel,CAPICON,'', CAPCOLOR, '#ffffff', FGCOLOR, '#ffffff', BGCOLOR, '#8090B1', TEXTCOLOR, '#000000', WIDTH, 300, HEIGHT, 50, DELAY, 200, HAUTO, VAUTO, NOCLOSE, NOBORDER, SHADOW, SHADOWOPACITY, 60, SHADOWX, 10, SHADOWY, 5);;
 }










function openPortFolio() {

  wwidth = 480;
  wheight = 660;

  newWin = window.open("", "popup",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    self.document.portfolio.submit();
    newWin.focus();
}

function openPortFolioVideo() {

  wwidth = 390;
  wheight = 380;

  newWin = window.open("", "popup",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    self.document.portfoliovideo.submit();
    newWin.focus();
}

function openPortFolioWebcam() {

  wwidth = 680;
  wheight = 630;

  newWin = window.open("", "popup",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    self.document.portfoliowebcam.submit();
    newWin.focus();
}

function openPortFolioOhneForm(conf) {

  wwidth = 480;
  wheight = 660;

  newWin = window.open("popup.php?conf="+conf, "popup",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

//    self.document.portfolio.submit();
    newWin.focus();
}


function openTopo(filename) {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.topoform.submit();
    newWin.focus();
}

function openTopoVariable(filename) {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.topoformvariable.submit();
    newWin.focus();
}

function openExterneTopo(filename) {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.externetopoform.submit();
    newWin.focus();
}

function openTopo1() {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.topoform1.submit();
    newWin.focus();
}
function openTopo2() {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.topoform2.submit();
    newWin.focus();
}
function openTopo3() {
  wwidth = 700;
  wheight = 700;
  newWin = window.open("", "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");
    self.document.topoform3.submit();
    newWin.focus();
}


function openTopoOhneForm(PhpSeite,Id,Path) {

  wwidth = 700;
  wheight = 700;

  newWin = window.open(PhpSeite+"?id_kl_garten="+Id+"&path="+Path, "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    //self.document.topoform.submit();
    newWin.focus();
}

function openTopoAlpinOhneForm(PhpSeite,Id,Path) {

  wwidth = 700;
  wheight = 700;

  newWin = window.open(PhpSeite+"?id_kl_alpintour="+Id+"&path="+Path, "topo",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    //self.document.topoform.submit();
    newWin.focus();
}


function openKarte() {

  wwidth = 700;
  wheight = 700;

  newWin = window.open("", "popup",
      "toolbar=no,location=no,directories=no,status=yes,menubar=no,"
      +"scrollbars=yes,resizable=yes,width="+wwidth
      +",height="+wheight+",left=0,top=0,alwaysraised=yes,"
      +"dependent=yes");

    self.document.karte.submit();
    newWin.focus();
}

function loggen(was, text) {
  //Verwendete Module: _loggen
  var xhrArgs = {
    url: "http://www.bergtotal.com/frontend/front_content.php?idart=637&was="+was+"&text="+text,
    handleAs: "text",
    load: function(data) {
    }
  };
  dojo.xhrPost(xhrArgs);
  /*var myAjax = new Ajax.Request(
    "http://www.bergtotal.com/frontend/front_content.php?idart=637&was="+was+"&text="+text,
    { method: 'post', onComplete: isOK }
  );
   */
}

function isOK() {

}

function radioWert(rObj) {
    for (var i=0; i<rObj.length; i++) if (rObj[i].checked) return rObj[i].value;
    return false;
  }


function addBtJavascript(jsname,pos) {
  var th = document.getElementsByTagName(pos)[0];
  var s = document.createElement('script');
  s.setAttribute('type','text/javascript');
  s.setAttribute('src',jsname);
  th.appendChild(s);
}
