function set_size(a_minus) {
  var height = window.innerHeight;
  if (!height)
    height = document.documentElement.clientHeight;
  if (!height)
    height = document.body.clientHeight;
  //height = height - 120 - 35 + 17;
  height = height - 80 - 100 +a_minus;
  //alert(height);
  document.getElementById("main").style.height = height + "px";
}
function set_size_impr(a_minus) {
  var height = window.innerHeight;
  if (!height)
    height = document.documentElement.clientHeight;
  if (!height)
    height = document.body.clientHeight;
  //height = height - 120 - 35 + 17;
  height = height - 100 + a_minus;
  //alert(height);
  document.getElementById("tab_impr").style.height = height + "px";
}

// Tab-Funktionen:
function getElementsByClass( searchClass, domNode, tagName) { 
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) { 
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1) 
			el[j++] = tags[i];
	} 
	return el;
} 
function set_size_tab(a_minus) {
  var height = window.innerHeight;
  if (!height)
    height = document.documentElement.clientHeight;
  if (!height)
    height = document.body.clientHeight;
  //height = height - 120 - 35 + 17;
  height = height - 80 - 100 + a_minus;
  //alert(height);
  
  var tabs = getElementsByClass('tab-page');
	for(i=0; i<tabs.length; i++) { 
		tabs[i].style.height = height + "px";
  }
}
