function GetElementWidth(elm)
{
  if (!elm)
    return 0;

  if (document.layers)
  {
    if (!elm.width)
      elm.width = elm.clip.width;
    return elm.width;
  }
  else if (typeof(elm.style && elm.style.width) == 'number')
  {
    return elm.style.width;
  }
  else if (typeof(elm.style && elm.style.width) == 'string' && !isNaN(parseInt(elm.style.width)))
  {
    return parseInt(elm.style.width);
  }
  else if (elm.offsetWidth)
  {
    return elm.offsetWidth;
  }
  else if (typeof(elm.style && elm.style.pixelWidth) == 'number')
  {
    return elm.style.pixelWidth;
  }
  else if (elm.clientWidth)
  {
    return elm.clientWidth;
  }

  return 0;
}
//===============================================================
function GetElementHeight (elm)
{
  if (!elm)
    return 0;

  if (document.layers)
  {
    if (!elm.height)
      elm.height = elm.clip.height;
    return elm.height;
  }
  else if (typeof(elm.style && elm.style.height) == 'number')
  {
    return elm.style.height;
  }
  else if (typeof(elm.style && elm.style.height) == 'string' && !isNaN(parseInt(elm.style.height)))
  {
    return parseInt(elm.style.height);
  }
  else if (elm.offsetHeight)
  {
    return elm.offsetHeight;
  }
  else if (typeof(elm.style && elm.style.pixelHeight) == 'number')
  {
    return elm.style.pixelHeight;
  }
  else if (elm.clientHeight)
  {
    return elm.clientHeight;
  }

  return 0;
}
//===============================================================
function breite()
 {
  var bildspalte = GetElementWidth(document.getElementById('bildspalte'));
  var content = GetElementWidth(document.getElementById('content'));	
  //alert(bildspalte+'-'+content);
  if (bildspalte > 40)	 
  		{
  			document.getElementById('content').style.width=content-bildspalte-42+"px";
  			
  			var h_bildspalte = GetElementHeight(document.getElementById('bildspalte'));
  			var h_content = GetElementHeight(document.getElementById('content'));
  			
  			if (h_content < h_bildspalte)  
  				document.getElementById('content').style.height=h_bildspalte-29+"px";
  			else  
  				document.getElementById('bildspalte').style.height=h_content-29+"px";
  		}
  else
  		document.getElementById('bildspalte').style.padding="0px 0px 0px 0px";
  		
 }
 


