<!--
langde = new Image();
langde.src = "images/top/langde.gif";
langdehigh = new Image();
langdehigh.src = "images/top/langde-over.gif";

langeng = new Image();
langeng.src = "images/top/langeng.gif";
langenghigh = new Image();
langenghigh.src = "images/top/langeng-over.gif";

email = new Image();
email.src = "images/mail.gif";
emailhigh = new Image();
emailhigh.src = "images/mail_hi.gif";

printp = new Image();
printp.src = "images/print.gif";
printphigh = new Image();
printphigh.src = "images/print_hi.gif";

buttvor = new Image();
buttvor.src = "images/buttongalerie_vor.gif";
buttvorhigh = new Image();
buttvorhigh.src = "images/buttongalerie_vor-hi.gif";

buttzu = new Image();
buttzu.src = "images/buttongalerie_zu.gif";
buttzuhigh = new Image();
buttzuhigh.src = "images/buttongalerie_zu-hi.gif";

buttclose = new Image();
buttclose.src = "images/buttongalerie_close.gif";
buttclosehigh = new Image();
buttclosehigh.src = "images/buttongalerie_close-hi.gif";

function buttonhigh(buttonnr,buttonobjekt)        {
iName="buttongfx"+buttonnr;

if (Image)        {
        document[iName].src = buttonobjekt.src;
        }
}

<!-- kontaktform script-->
function checkform(f)
{
var fehler = 0;
var msg= "";
var a = 0;
var  rc = 0;

for (a = 0; a < 14 ; a++) {
  
  if (a == 4) {a++;}
  if (a == 7) {a++;}
  if (a == 13) {a++;}
	if (f.elements[a].type == "text") {
     if (f.elements[a].value == "") {
          msg += "\n" + f.elements[a].name;fehler++;
          }
        }
 }

if (fehler == 0)
  {
  return true;
  }

if ((navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= "4")||(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= "5"))
        {
        alert("Bitte fuellen sie folgende Felder aus: \n" + msg);
        errorcol ="#FFAAAA";
        if (msg.indexOf("absemail") >= 1 )
        {f.absemail.style.background = errorcol;f.absemail.focus();}
        if (msg.indexOf("tel") >= 1 )
        {f.tel.style.background = errorcol;f.tel.focus();}
        if (msg.indexOf("ort") >= 1 )
        {f.ort.style.background = errorcol;f.ort.focus();}
        if (msg.indexOf("plz") >= 1 )
        {f.plz.style.background = errorcol;f.plz.focus();}
        if (msg.indexOf("strasse") >= 1 )
        {f.strasse.style.background = errorcol;f.strasse.focus();}
        if (msg.indexOf("vorname") >= 1 )
        {f.vorname.style.background = errorcol;f.vorname.focus();}
        if (msg.indexOf("name") >= 1 )
        {f.name.style.background = errorcol;f.name.focus();}
        return false;
  }

  else
   alert("Bitte fuellen sie folgende Felder aus: \n" + msg);return false;
}


function ruecksetzen(f)
{
  if ((navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= "4")||(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= "5")) {
        bgcolor ="#DDDDDD";

        f.name.style.background = bgcolor;
        f.vorname.style.background = bgcolor;
        f.strasse.style.background = bgcolor;
        f.plz.style.background = bgcolor;
        f.ort.style.background = bgcolor;
        f.tel.style.background = bgcolor;
        f.absemail.style.background = bgcolor;
        }
}

function inputstyle(form, feld, style)        {
                if (eval("document."+form)) {
                        eval("document."+form+"."+feld+".style.background = '"+style+"'");
                        }
        }
function inputstyle2(form, feld, style)        {
                if (eval("document."+form)) {
                        eval("document."+form+"."+feld+".id = '"+style+"'");
                        }
        }

<!-- menu script-->

function NeueFarbe(Nr,tf,COLlo,COLhi)
        {
        var TD_ID;
        COLhi = COLlo;
        TD_ID = "menuid" + Nr;


        if (document.getElementById) // IE 5.x , NN 6 , Opera
        {
                if (tf=="true")
                {
                document.getElementById(TD_ID).style.background=COLhi;
                document.getElementById(TD_ID).style.background=COLhi;
                document.getElementById(TD_ID).style.background=COLhi;
                document.getElementById(TD_ID).style.background=COLhi;
                }
                else
                {
                document.getElementById(TD_ID).style.background=COLlo;
                }
        }


        if (document.all && !document.getElementById) // IE 4
                {
                        if (tf=="true")
                        {
                        document.all[TD_ID].style.backgroundColor=COLhi;
                        }
                        else
                        {
                        document.all[TD_ID].style.backgroundColor=COLlo;
                        }
        }

        if (document.layers) // NN 4.x
        {
                if (tf=="true")
                {
                document.layers[TD_ID].bgColor=COLhi;
                }
                else
                {
                document.layers[TD_ID].bgColor=COLlo;
                }
        }
}


function openwin(URL,Titel,lang)
{
var wndurl = "window.php?URL=" + URL +"&lang="+lang;
var wndtitle = Titel;
window.open (wndurl,wndtitle,'toolbar=0,location=no,directories=0,menubar=0,resizable=1,scrollbars=1,status=0,screenx=0,screeny=0,top=0,left=0,width=620,height=600');
}

function gallerie ( oid )
  {
    var page = "imagelist.php?oid="+oid;
    win2 = window.open( page ,'Gallerie','width=452,height=360');
   }
   
//-->

