window.onerror = dummy;
function dummy(){return true;}

if(document.layers) window.onresize=neulad;
function neulad(){
	if( breite != innerWidth || hoehe != innerHeight) history.go(0);
}
 
function bwcheck(){ 
	this.dom=document.getElementById?1:0
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ns4 || this.dom)
	return this
}
var is=new bwcheck();

function getId(z) {	
	idobj = (is.ns4)?document.layers[z]:(is.dom)?document.getElementById(z):"";
 	return idobj;
 }
 
var aktID = "";
var bw = false;

function fenster(txt){
	neues_fenster=window.open (txt,'fensterklein','scrollbars=1,width=430,height=320,resizable=1');
	neues_fenster.focus();
}


function wechsel(w,z) {
	cl = (z.charAt(0)=='a')?'so':'he';
	if(w=='ein') {
		document.images[z].src="bilder/"+z+"_b.gif";
		cl = "aktiv";
		sttxt = (z.charAt(0)=='a')?sotxt:hetxt;
		nr = parseInt(z.charAt(1));
		wsts = sttxt[nr];
		
	}
	if(w=='aus') {
		document.images[z].src="bilder/"+z+"_a.gif";
		wsts ="";
	}
	if(w=='nix') {
		wsts ="";
	}
	if(wechsel.arguments.length > 2 && !is.ns4) {
		for(i=2;i < wechsel.arguments.length;i++) {
			aktID=getId(wechsel.arguments[i]);
			aktID.className=cl;
		}
	}
	window.status = wsts;
	return true;
}
