// Browsercheck
var macie = false;
if (navigator.userAgent.indexOf("Mac") != -1 && navigator.userAgent.indexOf("MSIE") != -1) macie = true;
var safari = false;
if (navigator.userAgent.indexOf("Safari") != -1) safari = true;
var nn4 = false;
if (navigator.appName.indexOf("Netscape") != -1 && navigator.appVersion.substring(0,1) < 5) nn4 = 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;
var counter = 1;
// Workaround IE6-multiple-pic-error
blindGif = new Image; blindGif.src = "../../_gfx/1px.gif";
// Funktionen zum Umschalten der Buttons
function ovr(imgName,ebene) {
if (document.all || nn6 == true || mozilla == true) {
document[imgName].src = eval(imgName + "_ovr.src");
} else {
with(document.layers.bodyframe) {
if (ebene) {
document.layers[ebene].document.images[imgName].src = eval(imgName + "_ovr.src");
} else {
document.images[imgName].src = eval(imgName + "_ovr.src");
}
}
}
}
function pas(imgName,ebene) {
if (document.all || nn6 == true || mozilla == true) {
document[imgName].src = eval(imgName + "_pas.src");
} else {
with(document.layers.bodyframe) {
if (ebene) {
document.layers[ebene].document.images[imgName].src = eval(imgName + "_pas.src");
} else {
document.images[imgName].src = eval(imgName + "_pas.src");
}
}
}
}
// Statusanzeige
window.defaultStatus = "Vermessungsbüro Braune und Hülsmann ";
function statustext(text) {
window.status = "Vermessungsbüro Braune und Hülsmann - " + text;
}
function rst() {
window.status = window.defaultStatus;
}
// Funktion fuer die Input-Felder und das Texteingabefeld
function inputField(formname,name,value,opttxt,title,laenge,maxlaenge) {
if (opttxt) {
optMeldung = ' onfocus="if (document.'+formname+'.'+name+'.value==\''+opttxt+'\') { document.'+formname+'.'+name+'.value=\'\'; }" onblur="if (document.'+formname+'.'+name+'.value==\'\') { document.'+formname+'.'+name+'.value=\''+opttxt+'\'; }"';
} else {
optMeldung = '';
}
if (macie == true) { laenge = Math.ceil(laenge*0.75); }
else { if (safari == true) { laenge = Math.ceil(laenge*0.78); }
else { if (nn6 == true) { laenge = Math.ceil(laenge*0.56); }
else { if (mozilla) { laenge = laenge; }
else { if (document.all) { laenge = laenge; }
else { laenge = Math.ceil(laenge*0.62); }
}
}
}
}
if (name == "headline") {
actwebheadline = ' onChange="window.document.projectform.webheadline.value = this.value;" onFocus="window.document.projectform.webheadline.value = this.value;" onBlur="window.document.projectform.webheadline.value = this.value;" onKeyDown="window.document.projectform.webheadline.value = this.value;" onKeyUp="window.document.projectform.webheadline.value = this.value;"';
} else {
actwebheadline = '';
}
if (name == "password") {
type = 'password';
} else {
type = 'text';
}
document.write ('')
}
function textArea(areaName,cols,rows,limit,target) {
if (!cols) cols = 43;
if (!rows) rows = 9;
if (limit > 0) { limitation = ' MAXLENGTH="'+limit+'" wrap="physical" onChange="Check'+target+'Str(this)" onFocus="Check'+target+'Str(this)" onBlur="Check'+target+'Str(this)" onKeyDown="Check'+target+'Str(this)" onKeyUp="Check'+target+'Str(this)" STYLE="overflow:hidden"'; }
else { limitation = ''; }
if (macie == true) { cols = Math.ceil(cols*0.7); }
else { if (safari == true) { cols = Math.ceil(cols*0.75); }
else { if (nn6 == true) { cols = Math.ceil(cols*0.547); }
else { if (mozilla) { cols = Math.ceil(cols*0.96); }
else { if (document.all) { cols = cols; }
else { cols = Math.ceil(cols*0.547); }
}
}
}
}
document.write ('