function chkFormular()
{
 if(document.Kontaktformular.Name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein.");
   document.Kontaktformular.Name.focus();
   return false;
  }
  if(document.Kontaktformular.Ort.value == "")  {
   alert("Bitte geben Sie den Namen Ihres Ortes ein.");
   document.Kontaktformular.Ort.focus();
   return false;
  }
}
  Normal1 = new Image();
  Normal1.src = "../fundusbild/ausstellung_neu.jpg";
  Highlight1 = new Image();
  Highlight1.src = "../fundusbild/ausstellung_neu_1.jpg";

  Normal2 = new Image();
  Normal2.src = "../fundusbild/katalog_neu.jpg";
  Highlight2 = new Image();
  Highlight2.src = "../fundusbild/katalog_neu_1.jpg";

  Normal3 = new Image();
  Normal3.src = "../fundusbild/projekte_neu.jpg";
  Highlight3 = new Image();
  Highlight3.src = "../fundusbild/projekte_neu_1.jpg";

  Normal4 = new Image();
  Normal4.src = "../fundusbild/informationen_neu.jpg";
  Highlight4 = new Image();
  Highlight4.src = "../fundusbild/informationen_neu_1.jpg";

  Normal5 = new Image();
  Normal5.src = "../fundusbild/gaestebuch_neu.jpg";
  Highlight5 = new Image();
  Highlight5.src = "../fundusbild/gaestebuch_neu_1.jpg";

   Normal6 = new Image();
  Normal6.src = '../fundusbild/bestellung_neu.jpg';
  Highlight6 = new Image();
  Highlight6.src = '../fundusbild/bestellung_neu_1.jpg';

  Normal7 = new Image();
  Normal7.src = '../fundusbild/sitemap_neu.jpg';
  Highlight7 = new Image();
  Highlight7.src = '../fundusbild/sitemap_neu_1.jpg';

  function Bildwechsel(Bildnr,Bildobjekt)
  {
   window.document.images[Bildnr].src = Bildobjekt.src;
  }


function write_select()
{

        document.write("<option selected>");
        document.write("unsere Kuenstler");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"gevorg_.html\">");
        document.write("Gevorg");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"danielb_.html\">");
        document.write("Daniel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"acdt.html\">");
        document.write("ACDT");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"richard_.html\">");
        document.write("Richard");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"susan_.html\">");
        document.write("Susan");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"amiram_.html\">");
        document.write("AmiRam");
        document.write("</option>");
         document.write("<option class=\"font\" value=\"ariela_.html\">");
        document.write("Ariela");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"andrew_.html\">");
        document.write("Andrew");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"karin_.html\">");
        document.write("Karin");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"kamir_.html\">");
        document.write("Kamir");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"lessig_.html\">");
        document.write("Bernhard Lessig");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"vater_.html\">");
        document.write("Frank Vater");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"hanspach_.html\">");
        document.write("Joerg Hanspach");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"bartelf_.html\">");
        document.write("Rolf Bartel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"maya_.html\">");
        document.write("Maja Chaplik");
        document.write("</option>");

}

function write_select_in()
{

        document.write("<option selected>");
        document.write("unsere Kuenstler");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/gevorg_.html\">");
        document.write("Gevorg");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/danielb_.html\">");
        document.write("Daniel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/acdt.html\">");
        document.write("ACDT");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/richard_.html\">");
        document.write("Richard");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/susan_.html\">");
        document.write("Susan");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/amiram_.html\">");
        document.write("AmiRam");
        document.write("</option>");
         document.write("<option class=\"font\" value=\"web/ariela_.html\">");
        document.write("Ariela");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/andrew_.html\">");
        document.write("Andrew");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/karin_.html\">");
        document.write("Karin");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/kamir_.html\">");
        document.write("Kamir");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/lessig_.html\">");
        document.write("Bernhard Lessig");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/vater_.html\">");
        document.write("Frank Vater");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/hanspach_.html\">");
        document.write("Joerg Hanspach");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/bartelf_.html\">");
        document.write("Rolf Bartel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"web/maya_.html\">");
        document.write("Maja Chaplik");
        document.write("</option>");

}

function write_select_en()
{

        document.write("<option selected>");
        document.write("our artists");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"gevorg_.html\">");
        document.write("Gevorg");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"danielb_.html\">");
        document.write("Daniel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"acdt.html\">");
        document.write("ACDT");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"richard_.html\">");
        document.write("Richard");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"susan_.html\">");
        document.write("Susan");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"amiram_.html\">");
        document.write("AmiRam");
        document.write("</option>");
         document.write("<option class=\"font\" value=\"ariela_.html\">");
        document.write("Ariela");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"andrew_.html\">");
        document.write("Andrew");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"karin_.html\">");
        document.write("Karin");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"kamir_.html\">");
        document.write("Kamir");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"preben_.html\">");
        document.write("Preben");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"lessig_.html\">");
        document.write("Bernhard Lessig");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"vater_.html\">");
        document.write("Frank Vater");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"hanspach_.html\">");
        document.write("Joerg Hanspach");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"bartelf_.html\">");
        document.write("Rolf Bartel");
        document.write("</option>");
        document.write("<option class=\"font\" value=\"maya_.html\">");
        document.write("Maja Chaplik");
        document.write("</option>");

}

  function schriftgroesse(string,richtung)
{
   var faktor  = ((richtung == "aufsteigend") ? -1 : 1)
   var laenge  = string.length
   var max     = Math.floor(string.length/2)  // maximale Fontgröße
   var groesse = 0
   var zeichen = ""
   var ausgabe = ""
   for (var i = 0; i < laenge; i++)
   {
        zeichen = string.charAt(i)
        groesse = faktor*(max - i)
        if (groesse >=0)

          ausgabe += zeichen.fontsize("+"+groesse)
        else
          ausgabe += zeichen.fontsize(groesse)
   }
   return ausgabe
}


function ab(string)
{
   return schriftgroesse(string,"absteigend")
}

function auf(string)
{
   return schriftgroesse(string,"aufsteigend")
}

function ab_und_auf(string)
{
   var mitte   = Math.floor(string.length/2)
   //var ausgabe = ab(string.substring(0,mitte)) +
                 auf(string.substring(mitte,string.length))
//   prompt(string,ausgabe)
   //return ausgabe
   return ab(string.substring(0,mitte)) +
          auf(string.substring(mitte,string.length))
}

function openAnyWindow(url, name) {
  var l = openAnyWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openAnyWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
        h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
