
	NS4 = (document.layers) ? true : false;
	function checkEnter(event)
	{
	    var code = 0;
	    if (NS4) code = event.which;
	    else code = event.keyCode;
	    if (code==13) document.quickf.submit();
	}
	function getElement( ID ) {
		if ( document.layers ) return eval("document.ids."+ID);
		if ( document.getElementById ) return document.getElementById(ID);
		if ( document.all ) return document.all[ID];
		// failed
		alert( "not able to reference '"+ID+"'!");
	}
	function impressum() {
		window.open('include/impressum.html','Impressum','toolbar=no,menubar=no,width=570,height=445');
	}
	function statusWindow() {
		// window.open('status.html','AktuellerStatus','toolbar=no,menubar=no,width=600,height=500');
	}
	function Fensterweite()
	{
	 if (window.innerWidth) return window.innerWidth;
	 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	 else return 0;
	}

	function Fensterhoehe()
	{
	 if (window.innerHeight) return window.innerWidth;
	 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	 else return 0;
	}

	function checkSize() {
		var x = Fensterweite();
		var y = Fensterhoehe();
		var box = getElement('outerbox').style;
		if (x<800) {
			box.left="400";
		}
		if (y<570) {
			box.top="300";
		}
	}
