function sizeCalc()
{
	if(window.innerWidth) breite = window.innerWidth;
	if(document.body.offsetWidth) breite=document.body.offsetWidth;
	
	if(window.innerHeight) hoehe = window.outerHeight;
	if(document.body.offsetHeight) hoehe=document.body.offsetHeight;
	
	
	alert(hoehe);
	
	document.getElementById("mainTable").width=breite;
	document.getElementById("mainTable").height=hoehe;	
}

function Test(){
hoehe = document.getElementById("BODY").height;
breite = document.getElementById("BODY").width;
var text = "Hoehe=" + hoehe  + " Breite=" + breite;
alert(text);
}

function setContentSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
  document.getElementById("mainTable").width=myWidth;
  document.getElementById("IFRAME").height=myHeight;
}

function whichElement(e)
{
	if (!e) var e = window.event
	if (e.target) targ = e.target
	else if (e.srcElement) targ = e.srcElement
	if (targ.nodeType == 3) // defeat Safari bug
	   targ = targ.parentNode
	var tname
	tname=targ.tagName

	if(tname=="TD" && targ.innerHTML!="&nbsp;" && targ.innerHTML!="")
	{
		var table=document.getElementById("NavTable")
		
		var rows = table.getElementsByTagName("tr");
		
		if (rows.length > 1) 
		{
		   for (j = 0; j < rows.length; j++) 
		   {
			 rows[j].cells[0].className = "StdInvCol16px";
		   }
		}
		
		
		
		/*for(var i=0;table.rows.length;i++)
		{
			alert("Hallo")
			var tg = table.rows[i]
			alert(tg.className)
			if(table.rows[i].className=="StdCol16px")
			{
				table.rows[i].className="StdInvCol16px"
			}
		}*/
		
		var targ
		
		targ.className="StdCol16px" 
	}
}