// <![CDATA[			
			//
			// getPageSize()
			// Returns array with page width, height and window width, height
			// Core code from - quirksmode.org
			// Edit for Firefox by pHaez
			//
			function getPageSize()
			{
				var xScroll, yScroll;
				if (window.innerHeight && window.scrollMaxY) {	
					xScroll = document.body.scrollWidth;
					yScroll = window.innerHeight + window.scrollMaxY;
				} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
					xScroll = document.body.scrollWidth;
					yScroll = document.body.scrollHeight;
				} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
					xScroll = document.body.offsetWidth;
					yScroll = document.body.offsetHeight;
				}
				var windowWidth, windowHeight;
				if (self.innerHeight) {	// all except Explorer
					windowWidth = self.innerWidth;
					windowHeight = self.innerHeight;
				} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
					windowWidth = document.documentElement.clientWidth;
					windowHeight = document.documentElement.clientHeight;
				} else if (document.body) { // other Explorers
					windowWidth = document.body.clientWidth;
					windowHeight = document.body.clientHeight;
				}	
				
				// for small pages with total height less then height of the viewport
				if(yScroll < windowHeight){
					pageHeight = windowHeight;
				} else { 
					pageHeight = yScroll;
				}
			
				// for small pages with total width less then width of the viewport
				if(xScroll < windowWidth){	
					pageWidth = windowWidth;
				} else {
					pageWidth = xScroll;
				}
				arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
				return arrayPageSize;
			}
			function getNum( value )
			{
				if( !Number(value) )
					return parseFloat(value.replace(/^[a-z]+/, ''));
				else
					return Number(value);
			}
			function getStyle(elObj,styleProp)
			{
				var x = elObj;
				if (x.currentStyle)
					var y = x.offsetHeight; // x.currentStyle[styleProp];
				else if (window.getComputedStyle)
					var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
				return y;
			}
			function CorrectHeight()
			{
				var Page = getPageSize();
				
				// TODO: MKH
				intXCoordinate = (Page[0] - 955)/2 + 733;
				document.getElementById("cabrio").style.left = intXCoordinate + "px";
				
				var MainObj = document.getElementById("ContentMain");
				var SubObj = false;
				var MenuObj = document.getElementById("MainMenu");
				var MainValue = getStyle(MainObj, "height");
				var SubValue = false;
				var MenuValue = getStyle(MenuObj, "height");
				if(	SubObj = document.getElementById("ContentSub")	)
					SubValue = getStyle(SubObj, "height");	
				
				if( getNum(MainValue)<Page[3] && 
					getNum(MenuValue)<Page[3] &&
					(SubObj && getNum(SubValue)<Page[3] || !SubObj) )
				{
					MenuObj.style.height = Page[3] +"px";
					MainObj.style.height = Page[3] +"px";
					if(SubObj)
						SubObj.style.height = Page[3] +"px";

					return;	
				}	
				
				if( getNum(MainValue) > getNum(MenuValue) )
					MenuObj.style.height = MainValue;
				else
					MainObj.style.height = MenuValue;
	
				if( SubObj && getNum(SubValue) > getNum(MainValue) )
				{
					MenuObj.style.height = SubValue;
					MainObj.style.height = SubValue;
				}
			}
			function FensterOeffnen( Adresse, Name, Parameter )
			{
			  Fenster1 = window.open(Adresse, Name, Parameter);
			  Fenster1.focus();
			}
			function CheckBox( obj )
			{
				tmp =  obj.name.replace( /^[a-z]+_+/, ''); // name of hidden field
				if( document.getElementById(tmp).value == 1 )
				{
					document.getElementById(tmp).value = 0;
					obj.src="/images/checkbox_unset.gif";
				}
				else
				{
					document.getElementById(tmp).value = 1;
					obj.src="/images/checkbox_set.gif";
				}	
			}
			// ]]>	