<!--
// tools.js

//email
function ef(subj)
{
  p="energie-forum";
  u="Energie-Forum Wiener Neustadt <info"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function hammel(subj)
{
  p="hotmail";
  u="Mag. Ute Hammel <utehammel"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".com>"+y;
}

function handler(subj)
{
  p="aon";
  u="DI Eva-Maria Handler <arch.handler"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function huber(subj)
{
  p="boku.ac";
  u="DI Dr. Marion Huber <marion.huber-humer"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function hazod(subj)
{
  p="hazod";
  u="Hannes Hazod <hannes"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".com>"+y;
}

function schwertner(subj)
{
  p="energie-forum";
  u="Christoph Schwertner <christoph.schwertner"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function alexotahal(subj)
{
  p="aon";
  u="Alexander Otahal <alex.otahal"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function otahal(subj)
{
  p="energie-forum";
  u="Andreas Otahal <andreas.otahal"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function krajnik(subj)
{
  p="fkc.co";
  u="Ing. Friedrich Krajnik <fk"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function zauner(subj)
{
  p="energie-forum";
  u="Karl Zauner <karl.zauner"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function gruber(subj)
{
  p="10hoch4";
  u="DI(FH) Gerald Gruber <gerald.gruber"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}

function senn(subj)
{
  p="gmx";
  u="G&uuml;nther Senn <guenther2401"
  x=String.fromCharCode(109,97,105,108,116,111,58)+u+String.fromCharCode(64);
  y="?Subject="+subj
  window.location.href=x+p+".at>"+y;
}


function menu1(name)
{
  var items = ["Energie-Forum","Leitbild","Aktiv","Termine","Download","Links","Impressum"];
  var links = ["index.htm", "leitbild.htm","","termine.htm","download.htm","links.htm", "impressum.htm"]; 

  var s = "";
  s += '<p>';

  var item;
  var i=0;
  for(item in items)
  {

     if(name == items[i])
           s +=  '<span class="style16">' + items[i] + '</span><br/>';
    else if(links[i] != "")
           s += '<span class="style15"><a href="' + links[i] + '">' + items[i] + '</a></span><br>';
    else
           s +=  '<span class="style15">' + items[i] + '</span><br/>';		//no link available

    i += 1; 
  }

  s += '</p>';
  document.write(s);

}

function menu(name)
{
  var items = [ 	[1,"Energie-Forum","index.htm"],
		[2,"Leitbild", "leitbild.htm"], 
		[3, "Aktuell","aktuell.htm"], 
		[31, "E-Scooter","escooter.htm"], 
		[4,"Termine","termine.htm"],
		[5,"Download","download.htm"],
		[6,"Links","links.htm"], 
		[7,"Impressum", "impressum.htm"]
	];
  var s = "";
  s += '<p>';

  var i=0;
  for(i in items)
  {
     var txt = items[i][1];
     if(items[i][0] >= 10)	//this is a subitem
         txt = "&nbsp;&middot; " + txt;

     if(name == items[i][1])
           s +=  '<span class="style16">' + txt + '</span><br/>';
    else if(items[i][2] != "")
           s += '<span class="style15"><a href="' + items[i][2] + '">' + txt + '</a></span><br>';
    else
           s +=  '<span class="style15">' + txt + '</span><br/>';		//no link available
  }

  s += '</p>';
  document.write(s);

}


function footer()
{
   var s ='<div align="center"><HR align="center" SIZE=1 noShade color=grey></div>';
   s = s +' <div align="center"><span class="style8pt">ENERGIE-FORUM<br>';
   s = s + '2801 Katzelsdorf &middot; Eichb&uuml;chlerstr. 106 &middot; 0676/3813055 &middot; <a href=\'javascript:ef("Email von der Energie-Forum-Homepage")\'>Email</a></span>';
   s = s + '</div></div>';

   document.write(s);
}


-->
