// Browserabfragen var macie = false; if (navigator.userAgent.indexOf("Mac") != -1 && navigator.userAgent.indexOf("MSIE") != -1) macie = true; var nn6 = false; if (navigator.userAgent.indexOf("Netscape6") != -1) nn6 = true; var mozilla = false; if (navigator.userAgent.indexOf("Mozilla") != -1 && navigator.appVersion.substring(0,1) >= 5) mozilla = true; // Button-Preload // Funktionen zum Umschalten der Buttons function ovr(imgName) { if (document.all || nn6 == true) { document.all[imgName].src = eval(imgName + "_ovr.src"); } else { document.images[imgName].src = eval(imgName + "_ovr.src"); } } function pas(imgName) { if (document.all || nn6 == true) { document.all[imgName].src = eval(imgName + "_pas.src"); } else { document.images[imgName].src = eval(imgName + "_pas.src"); } } // Statusanzeige window.defaultStatus = "Freiwillige Feuerwehr Westerholt"; function statustext(text) { window.status = "Freiwillige Feuerwehr Westerholt - " + text; } // Funktion fuer die Input-Felder und das Texteingabefeld var optMeldung = ''; function inputField(name,value,optional,opttxt,title,laenge,nnlaenge,maxlaenge) { if (optional==2) optMeldung = ' onfocus="if (document.formular.'+name+'.value==\''+opttxt+'\') {document.formular.'+name+'.value=\'\'}" onblur="if (document.formular.'+name+'.value==\'\') {document.formular.'+name+'.value=\''+opttxt+'\'}"'; if (optional==1) optMeldung = ' onfocus="if (document.formular.'+name+'.value==\'(optional)\') {document.formular.'+name+'.value=\'\'}" onblur="if (document.formular.'+name+'.value==\'\') {document.formular.'+name+'.value=\'(optional)\'}"'; if (optional==0) optMeldung = ''; if (macie == true) { document.write ('') } else { if (nn6 == true) { document.write ('') } else { if (mozilla) { document.write ('') } else { if (document.all) { document.write ('') } else { document.write ('') } } } } } function textArea() { if (macie == true) { document.write ('