function addResizeEvent(func) {
  var old = window.onresize;
  if (typeof window.onresize != 'function') {
    window.onresize = func;
  } else {
    window.onresize = function(e) {
      old(e);
      func(e);
    }
  }
}

function addScrollEvent(func) {
  var old = window.onscroll;
  if (typeof window.onscroll != 'function') {
    window.onscroll = func;
  } else {
    window.onscroll = function(e) {
      old(e);
      func(e);
    }
  }
}

function hoehe_anpassen() {
	var i, obj, tmpHoehe,hoehe;
	// wert wenn oddset wieder online ist: 550
	var abzug = 450;
	content_hoehe = hoehe;
	
	if (window.innerHeight) {
		hoehe = window.innerHeight;
  	} else if (document.body && document.body.offsetHeight) {
    	hoehe = document.documentElement.clientHeight;
		if (hoehe == 0) {hoehe = 800};
	} else {
		hoehe = 800;
	}
	hoehe = hoehe - abzug;
	if (hoehe < 38) {hoehe = 38};
	document.getElementById('oddset_liste_anzeige').style.height = hoehe+'px';
}

