<!--
function machDatum() {
var tag, monat, jahr;
var aktDatum=new Date();
tag=aktDatum.getDate();
monat=aktDatum.getMonth()+1;
jahr=aktDatum.getYear();

if (jahr<2000) {
jahr=jahr+1900;
}

if (tag<10) {
tag="0"+ String(tag);
}

if (monat<10) {
monat="0" + String(monat);
}

window.document.form1.datum.value=tag+"-"+monat+"-"+jahr;
}

function nkt(form) {
var test=form.name.value;
alert("Danke für Ihre Interesse "); 
}

function check() 
{
var status=true;
var name=document.form1.name.value;
var str=document.form1.str.value;
var stadt=document.form1.stadt.value;

if(name == "") {
alert("Bitte geben Sie Ihren Namen ein !");
status=false;
} 
if(str == "") {
alert("Bitte geben Sie den Strassen-Namen ein !");
status=false;
}
if(stadt == "") {
alert("Bitte geben Sie PLZ und Stadt ein !");
status=false;
}

if(status)status=confirm("Haben Sie alles korrekt eingegeben?"); {
return status;
}
}

// ursprl. function in seite default.htm ab 19-08 nicht mehr
function move()
{
x=x+d;
	if (x==maxx)	//oberen rand erreicht 
	d=-1;			//umkehr 
	if (x==-380)		//bereich-rand erreicht ursprl=150, dann 80
	d=+1;			//umkehr */
	
	eval (layerRef + '["text"]' + styleRef + '.top=' + (maxx-x+100));				//bewegung

/*	eval (layerRef + '["text1"]' + styleRef + '.top=' + (maxx-x)); */		//bewegung
	setTimeout ("move()", 25);										//warte

/* if (x==maxx)	//unteren rand  erreicht */
/* { */
/* window.eval(layerRef + '["text"]' + styleRef + '.top=' + x); */
/* } */

}


//ursprüngl. im layer.js 19-08-01
// Define global browser-detection variables
var NN 		 = (document.layers ? true : false);
var hideName = (NN ? 'hide' : 'hidden');
var showName = (NN ? 'show' : 'visible');
var zIdx 	 = -1;
var helpWdh  = 50;     // ursprüngl. 200
var helpHgt  = 200;
var x, y, totalWidth, totalHeight;
var wdh = hgt = 300;

/* Bug Report: 
   Some versions of MSIE 4 have problems with the opening   window calling the remote window and vice versa (the remote 
   window referencing the opening window). Doing so often    throws the MSIE "Class doesn't support Automation" error. 
   
   As a workaround, variables wdh and hgt have been declared    here to remove any calls to those of the same name in the 
   opening window, which contains index.html.  top.wdh and top.hgt in function helpDisplay() below were replaced   
with wdh and hgt, respectively.
    Changes have also been made to inContext() in nav.html to accommodate.
*/

// Set browser-determined global variables
function genLayer(sName, sLeft, sTop, sWdh, sHgt, sVis, copy) {
	if (NN) {
		document.writeln('<LAYER NAME="' + sName + '" LEFT=' + sLeft + ' TOP=' + sTop + 
		' WIDTH=' + sWdh + ' HEIGHT=' + sHgt + ' VISIBILITY="' + sVis + '"' + 
		' z-Index=' + (++zIdx) + '>' + copy + '</LAYER>');
		}
	else {
		document.writeln('<DIV ID="' + sName + '" STYLE="position:absolute; overflow:none; left:' + 
			sLeft + 'px; top:' + sTop + 'px; width:' + sWdh + 'px; height:' + sHgt + 'px;' + 
			' visibility:' + sVis + '; z-Index=' + (++zIdx) + '">' + 
			copy + '</DIV>'
			);
		}
	}

// Define a function to hide layers
function hideSlide(name) {
	refSlide(name).visibility = hideName;
	}

// Define a function to reveal layers
function showSlide(name) {
	refSlide(name).visibility = showName;
	}

// Define a central function to reference layers
function refSlide(name) {
	if (NN) { return document.layers[name]; }
	else { return eval('document.all.' + name + '.style'); }
	}

// Enable MouseMove event listeners 
// for both browsers
function motionListener() {
	if (NN) {
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = grabXY;
		}
	else { 
		document.onmousemove = grabXY;
		}
	}

// Track the x/y coordinates  
// of mouse pointer arrow
function grabXY(ev) {
	if(NN) {
		x = ev.pageX;
		y = ev.pageY;
		}
	else {
		x = event.x;
		y = event.y;
		}
	}

// Show or hide the help boxes, making sure
// they are not displayed off the screen 
function helpDisplay(name, action) {
	if(action) {
		totalWidth = x + helpWdh;
		totalHeight = y + helpHgt; 
		x = (totalWidth > wdh ? x - (totalWidth - wdh + 75) : x);   //urspüngl. +75
		y = (totalHeight > hgt ? y - (totalHeight - hgt) : y);
		refSlide(name).left = x + 100;                                                    // x-10
		refSlide(name).top = y + 380;			// y+8	dann y+280		
		showSlide(name);
		}
	else { hideSlide(name); }
	}
motionListener();
self.focus();
//-->
